Skip to content

BatchNormalization invalid configuration argument #907

@octavian-ganea

Description

@octavian-ganea

Hi,

Can someone help with this hard to understand BatchNormalization error:

THCudaCheck FAIL file=/local/home/ganeao/torch/extra/cunn/lib/THCUNN/BatchNormalization.cu line=257 error=9 : invalid configuration argument /local/home/ganeao/torch/install/bin/luajit: ...home/ganeao/torch/install/share/lua/5.1/nn/Container.lua:67: In 1 module of nn.Sequential: In 1 module of nn.ConcatTable: In 2 module of nn.Sequential: In 4 module of nn.Sequential: In 1 module of nn.ParallelTable: /local/home/ganeao/torch/install/share/lua/5.1/nn/THNN.lua:109: cuda runtime error (9) : invalid configuration argument at /local/home/ganeao/torch/extra/cunn/lib/THCUNN/BatchNormalization.cu:257 stack traceback: ...ome/ganeao/torch/install/share/lua/5.1/fb/util/error.lua:76: in function <...ome/ganeao/torch/install/share/lua/5.1/fb/util/error.lua:72> [C]: in function 'v' /local/home/ganeao/torch/install/share/lua/5.1/nn/THNN.lua:109: in function 'BatchNormalization_updateOutput' ...ao/torch/install/share/lua/5.1/nn/BatchNormalization.lua:112: in function <...ao/torch/install/share/lua/5.1/nn/BatchNormalization.lua:101> [C]: in function 'real_xpcall' ...ome/ganeao/torch/install/share/lua/5.1/fb/util/error.lua:85: in function 'xpcall' ...home/ganeao/torch/install/share/lua/5.1/nn/Container.lua:63: in function 'rethrowErrors' .../ganeao/torch/install/share/lua/5.1/nn/ParallelTable.lua:12: in function <.../ganeao/torch/install/share/lua/5.1/nn/ParallelTable.lua:10> [C]: in function 'real_xpcall' ...ome/ganeao/torch/install/share/lua/5.1/fb/util/error.lua:85: in function 'xpcall' ... ...ome/ganeao/torch/install/share/lua/5.1/fb/util/error.lua:85: in function 'xpcall' ...home/ganeao/torch/install/share/lua/5.1/nn/Container.lua:63: in function 'rethrowErrors' ...ome/ganeao/torch/install/share/lua/5.1/nn/Sequential.lua:44: in function 'forward'

The above error happens in a forward pass over the network. My network configuration is a bit complicated, but essentially I add nn.BatchNormalization immediately after an nn.LookupTable or after a nn.Linear , each time receiving the same error. If I remove BN, everything works fine. Any hints on how to debug this would be appreciated.

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