Skip to content
This repository has been archived by the owner on Apr 2, 2020. It is now read-only.

is nn.gModule for input not valid? #22

Open
zlqhem opened this issue Nov 4, 2016 · 0 comments
Open

is nn.gModule for input not valid? #22

zlqhem opened this issue Nov 4, 2016 · 0 comments

Comments

@zlqhem
Copy link

zlqhem commented Nov 4, 2016

I have a CNN model and call forward() method.

model = torch.load("./mymodel.net")
input = torch.load("./input.bin")
out =  model:forward(input)

When I pass it to torch2caffe.lua, it complains that is a unknown Torch class <nn.gModule>.
Is it illegal use?

$ th torch2caffe/torch2caffe.lua --input <path>/mymodel.net
Opts: %s	{
  prototxt = "",
  format = "lua",
  input = "<path>/mymodel.net",
  caffemodel = "",
  preprocessing = "",
  input_dims = {
    0
  },
  verify = "",
  input_tensor = ""
}	
<mypath>/torch/install/bin/luajit: ...<mypath>/torch/install/share/lua/5.1/torch/File.lua:343: unknown Torch class <nn.gModule>
stack traceback:
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant