soumith / imagenet-multiGPU.torch

an imagenet example in torch.
BSD 2-Clause "Simplified" License
402 stars 158 forks source link

"nn/Linear.lua:69: input must be vector or matrix" #100

Open bemoregt opened 7 years ago

bemoregt commented 7 years ago

Hi, @soumith

I have an error when run your one-image testing code.

nTest: 200 Loading train metadata from cache
Loading test metadata from cache
Loaded mean and std from cache. /home/ctilab/torch/install/bin/luajit: /home/ctilab/torch/install/share/lua/5.1/nn/Container.lua:67: In 1 module of nn.Sequential: In 1 module of nn.Sequential: /home/ctilab/torch/install/share/lua/5.1/nn/Linear.lua:69: input must be vector or matrix

What wrong with me?