donglixp / lang2logic

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error when trying run experiments

ahmedbendebba opened this issue · comments

I thank you for your code. It is a great work. I have a question. when i want to run experiments (./run.sh seq2seq [jobsqueries|atis|geoqueries] lstm commands), i receive an error.This is a description for the error . I put the new ClassNLLCriterion.cu file but it had not solve the problem.

`warning: '?.split' will not override existing symbol

loading vocabulary file: /people/bendebba/neural_network/lang2logic-master/seq2seq/jobqueries/data/vocab.q.txt	

oading vocabulary file: /people/bendebba/neural_network/lang2logic-master/seq2seq/jobqueries/data/vocab.f.txt	

loading text file...	

saving /people/bendebba/neural_network/lang2logic-master/seq2seq/jobqueries/data/map.t7	

saving /people/bendebba/neural_network/lang2logic-master/seq2seq/jobqueries/data/train.t7	

loading text file...	

saving /people/bendebba/neural_network/lang2logic-master/seq2seq/jobqueries/data/test.t7	

warning: '?.split' will not override existing symbol

using CUDA on GPU 0...	

Creating encoder	

Creating decoder	

number of parameters in the model: 396801	

loading data: train	

Starting training.	

/people/bendebba/torch/extra/cunn/lib/THCUNN/ClassNLLCriterion.cu:57: void cunn_ClassNLLCriterion_updateOutput_kernel(Dtype *, Dtype *, Dtype *, long *, Dtype *, int, int, int, int, long) [with Dtype = float, Acctype = float]: block: [0,0,0], thread: [0,0,0] Assertion `t >= 0 && t < n_classes` failed.

THCudaCheck FAIL file=/people/bendebba/torch/extra/cutorch/lib/THC/generic/THCStorage.c line=32 error=59 : device-side assert triggered

/people/bendebba/torch/bin/luajit: cuda runtime error (59) : device-side assert triggered at /people/bendebba/torch/extra/cutorch/lib/THC/generic/THCStorage.c:32

stack traceback:

	[C]: at 0x7f7322922d50

	[C]: in function '__index'

	...le/bendebba/torch/share/lua/5.1/nn/ClassNLLCriterion.lua:50: in function 'forward'
lstm/main.lua:211: in function 'opfunc'

	/people/bendebba/torch/share/lua/5.1/optim/rmsprop.lua:35: in function 'rmsprop'
lstm/main.lua:322: in function 'main'

	lstm/main.lua:373: in main chunk

[C]: in function 'dofile'

	...ple/bendebba/torch/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk

[C]: at 0x00405d50

warning: '?.split' will not override existing symbol

using CUDA on GPU 0...	

/people/bendebba/torch/bin/luajit: cannot open </people/bendebba/neural_network/lang2logic-master/seq2seq/jobqueries/dump_lstm/model.t7> in mode r  at /people/bendebba/torch/pkg/torch/lib/TH/THDiskFile.c:670

stack traceback:

	[C]: at 0x7f3788dba080

	[C]: in function 'DiskFile'

	/people/bendebba/torch/share/lua/5.1/torch/File.lua:405: in function 'load'

	lstm/sample.lua:168: in main chunk

	[C]: in function 'dofile'

	...ple/bendebba/torch/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk

	[C]: at 0x00405d50` 

Thank you

I uploaded the torch7 (c0e51b98acbb54e6655343a57152b6e711ffdc2b) to GDrive. It can be downloaded from: https://drive.google.com/file/d/0B8yp1gOBCztycW42eDNNaExWSlU/view?usp=sharing .

clean.sh
install.sh

Thanks!