torch / torch7

http://torch.ch
Other
9k stars 2.38k forks source link

luajit: evaluate-rva.lua:56: attempt to index global 'model' (a nil value) #967

Closed ruizhaogit closed 7 years ago

ruizhaogit commented 7 years ago

Hi guys,

I try to evaluate the trained RAM model on Mnist using script "evaluate-rva.lua", but get this error: luajit: evaluate-rva.lua:56: attempt to index global 'model' (a nil value).

Does anyone know why?

Thank you! Rui

ksharsha commented 7 years ago

It looks like you are trying to access the model before actually creating it or loading it.

ruizhaogit commented 7 years ago

I change this line "model = xp:model().module" to "model = xp:model()". Then it worked :)