soumith/cvpr2015

Error when calling :forward()

lambdacrash opened this issue · 1 comments

When running the example of the tutorial "Deep Learning with Torch" I got this error when calling :forward() function.

predicted = net:forward(testset.data[100])
Channel 1, Mean: 125.83175029297
Channel 1, Standard Deviation: 63.143400842609
Channel 2, Mean: 123.26066621094
Channel 2, Standard Deviation: 62.369209019002
Channel 3, Mean: 114.03068681641
Channel 3, Standard Deviation: 66.965808411114
horse
/Users/me/Torch/install/bin/luajit: ...me/Torch/install/share/lua/5.1/nn/SpatialConvolution.lua:104: attempt to index field 'THNN' (a nil value)
stack traceback:
    ...me/Torch/install/share/lua/5.1/nn/SpatialConvolution.lua:104: in function 'updateOutput'
    /Users/me/Torch/install/share/lua/5.1/nn/Sequential.lua:44: in function 'forward'
    tutodl.lua:84: in main chunk
    [C]: in function 'dofile'
    ...me/Torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
    [C]: at 0x01019ad810'''

See tutodl.txt for the complete code

Not an issue, I missed to normalize test data. My bad.