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

cudnn/SpatialConvolution.lua error when training on GPU #129

Closed
Lienes opened this issue Feb 13, 2018 · 2 comments
Closed

cudnn/SpatialConvolution.lua error when training on GPU #129

Lienes opened this issue Feb 13, 2018 · 2 comments

Comments

@Lienes
Copy link

Lienes commented Feb 13, 2018

I run DATA_ROOT=./datasets/facades name=facades_generation which_direction=BtoA th train.lua.

And the output :
transferring to gpu...
done
/home/liene/torch/install/bin/luajit: ...torch/install/share/lua/5.1/cudnn/SpatialConvolution.lua:42: attempt to perform arithmetic on field 'groups' (a nil value)

Does it means that i have something wrong with dependencies ?

@Naruto-Sasuke
Copy link
Contributor

It will be solved if this patch is merged. You can try it yourself locally. #140

@EvergreenTree
Copy link

EvergreenTree commented Sep 4, 2020

Same problem here, even if this patch is fixed already.

.../torch_distro/install/bin/luajit: ...o/install/share/lua/5.1/cudnn/SpatialFullConvolution.lua:31: attempt $
o perform arithmetic on field 'groups' (a nil value)
stack traceback:
        ...o/install/share/lua/5.1/cudnn/SpatialFullConvolution.lua:31: in function 'resetWeightDescriptors'
        ...o/install/share/lua/5.1/cudnn/SpatialFullConvolution.lua:105: in function 'func'
        ...b/torch_distro/install/share/lua/5.1/nngraph/gmodule.lua:345: in function 'neteval'
        ...b/torch_distro/install/share/lua/5.1/nngraph/gmodule.lua:380: in function 'forward'
        test.lua:117: in main chunk
        [C]: in function 'dofile'
        ...rch_distro/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
        [C]: at 0x00405d50

Possible reason: in function cudnn_convert_custom there is a commented message:
Warning: cudnn.convert does not work with nngraph yet. Ignoring nn.gModule
which implies nn.gModule is not supported.

Still doing the workaround...

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

4 participants