Skip to content

Can't create graph visualizations with resnet  #11

@lim0606

Description

@lim0606

Hi,

I tried to draw ResNet (https://github.com/facebook/fb.resnet.torch/blob/master/models/resnet.lua)

However, I got following error;

/home/jaehyun/github/torch/install/bin/lua: ...hyun/github/torch/install/share/lua/5.2/nn/Container.lua:67: 
In 2 module of nn.Sequential:
...ub/torch/install/share/lua/5.2/nn/BatchNormalization.lua:112: attempt to index field 'THNN' (a nil value)
stack traceback:
        ...ub/torch/install/share/lua/5.2/nn/BatchNormalization.lua:112: in function <...ub/torch/install/share/lua/5.2/nn/BatchNormalization.lua:101>
        [C]: in function 'xpcall'
        ...hyun/github/torch/install/share/lua/5.2/nn/Container.lua:63: in function 'rethrowErrors'
        ...yun/github/torch/install/share/lua/5.2/nn/Sequential.lua:44: in function <...yun/github/torch/install/share/lua/5.2/nn/Sequential.lua:41>
        (...tail calls...)
        ...n/github/torch/install/share/lua/5.2/optnet/graphgen.lua:218: in function 'generateGraph'
        models/draw_model.lua:51: in function 'drawModel'
        models/create-resnet.lua:53: in main chunk
        [C]: in function 'dofile'
        ...thub/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
        [C]: in ?

WARNING: If you see a stack trace below, it doesn't point to the place where this error occured. Please use only the one above.
stack traceback:
        [C]: in function 'error'
        ...hyun/github/torch/install/share/lua/5.2/nn/Container.lua:67: in function 'rethrowErrors'
        ...yun/github/torch/install/share/lua/5.2/nn/Sequential.lua:44: in function <...yun/github/torch/install/share/lua/5.2/nn/Sequential.lua:41>
        (...tail calls...)
        ...n/github/torch/install/share/lua/5.2/optnet/graphgen.lua:218: in function 'generateGraph'
        models/draw_model.lua:51: in function 'drawModel'
        models/create-resnet.lua:53: in main chunk
        [C]: in function 'dofile'
        ...thub/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
        [C]: in ?

Is there anyone who can help me to find this problem?

Thanks

Best regards,

Jaehyun

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions