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

class nn.Decorator has been already assigned a parent class #93

Open
bharathsekar opened this issue May 24, 2017 · 2 comments
Open

class nn.Decorator has been already assigned a parent class #93

bharathsekar opened this issue May 24, 2017 · 2 comments

Comments

@bharathsekar
Copy link

bharathsekar commented May 24, 2017

I cloned torch, followed by

luarocks install torch
luarocks install nn
luarocks install cutorch
luarocks install cunn
luarocks install torchx
luarocks install dpnn

However the below command (require 'dpnn') results in an error
th> require 'dpnn'

<torch-dir>/install/share/lua/5.1/trepl/init.lua:389: <torch-dir>/install/share/lua/5.1/trepl/init.lua:389: <torch-dir>/install/share/lua/5.1/torch/init.lua:102: class nn.Constant has been already assigned a parent class

stack traceback:
[C]: in function 'error'
<torch-dir>/install/share/lua/5.1/trepl/init.lua:389: in function 'require'
[string "_RESULT={require 'dpnn'}"]:1: in main chunk
[C]: in function 'xpcall'
<torch-dir>/install/share/lua/5.1/trepl/init.lua:661: in function 'repl'
...rath/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:204: in main chunk
[C]: at 0x004064f0

note: <torch-dir> is the torch home directory

@Kaixhin
Copy link

Kaixhin commented May 27, 2017

Duplicate of #91. From that issue, one solution is to install a previous version:

git clone https://github.com/Element-Research/dpnn.git && \
  cd dpnn && \
  git reset --hard ca0e99fa6d0dfd971f0f284520562765ae0865fd && \
  luarocks make rocks/dpnn-scm-1.rockspec

@idansc
Copy link

idansc commented Aug 6, 2017

latest nn and dpnn version works now

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

3 participants