Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unknown Torch class <nn.gModule> #24

Open
TheTesla opened this issue Nov 1, 2016 · 1 comment
Open

unknown Torch class <nn.gModule> #24

TheTesla opened this issue Nov 1, 2016 · 1 comment

Comments

@TheTesla
Copy link

TheTesla commented Nov 1, 2016

steps to reproduce:
import PyTorchAug x = PyTorchAug.load('umich-stacked-hourglass.t7')
output:
~/.luarocks/share/lua/5.1/torch/File.lua:343: unknown Torch class <nn.gModule>

but there is a ~/.luarocks/share/lua/5.1/nngraph/gmodule.lua
also there is a ~/.luarocks/share/lua/5.1/nn directory - maybe something incompatible/confusing/wrong require?
How to solve the problem?

@TheTesla
Copy link
Author

TheTesla commented Nov 1, 2016

I found the misstake, I have to:
import PyTorch PyTorch.require('nngraph')
explicitely

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant