macournoyer / neuralconvo

Neural conversational model in Torch
776 stars 347 forks source link

eval.lua sort nil value #16

Closed jryates120 closed 8 years ago

jryates120 commented 8 years ago

Attempting to run eval.lua on trained model (5000 dataset 1000 hidden) throwing sort nil value. All appropriate torch/lua models are installed and functioning as far as I can tell, and I even tried rebuilding them with cmake 3.2.

user@neuralbox:~/neuralconvo$ th -i eval.lua
libthclnn_searchpath    /home/user/torch/install/lib/lua/5.1/libTHCLNN.so
Loading vocabulary from data/vocab.t7 ...
-- Loading model
Using Advanced Micro Devices, Inc. , OpenCL platform: AMD Accelerated Parallel Processing
Using OpenCL device: Tahiti

  ______             __   |  Torch7
 /_  __/__  ________/ /   |  Scientific computing for Lua.
  / / / _ \/ __/ __/ _ \  |  Type ? for help
 /_/  \___/_/  \__/_//_/  |  https://github.com/torch
                          |  http://torch.ch

th> say "Hello."
./seq2seq.lua:123: attempt to call method 'sort' (a nil value)
stack traceback:
        ./seq2seq.lua:123: in function 'eval'
        eval.lua:66: in function 'say'
        [string "_RESULT={say "Hello."}"]:1: in main chunk
        [C]: in function 'xpcall'
        /home/user/torch/install/share/lua/5.1/trepl/init.lua:651: in function 'repl'
        ...user/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:199: in main chunk
        [C]: at 0x00406670
                                                                      [1.2571s]
th>
macournoyer commented 8 years ago

Should be fixed on master