Skip to content

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

Description

@bharathsekar

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions