yoonkim / CNN_sentence

CNNs for sentence classification

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The following error happened while compiling the node', GpuAlloc

gallupliu opened this issue · comments

I met this error as fellows:
Using gpu device 0: GeForce GTX 960
loading data... data loaded!
model architecture: CNN-static
using: word2vec vectors
[('image shape', 64, 300), ('filter shape', [(100, 1, 3, 300), (100, 1, 4, 300), (100, 1, 5, 300)]), ('hidden_units', [100, 2]), ('dropout', [0.5]), ('batch_size', 50), ('non_static', False), ('learn_decay', 0.95), ('conv_non_linear', 'relu'), ('non_static', False), ('sqr_norm_lim', 9), ('shuffle_batch', True)]
Traceback (most recent call last):
File "conv_net_sentence.py", line 322, in
dropout_rate=[0.5])
File "conv_net_sentence.py", line 133, in train_conv_net
allow_input_downcast=True)
File "/home/gallup/anaconda2/lib/python2.7/site-packages/theano/compile/function.py", line 266, in function
profile=profile)
File "/home/gallup/anaconda2/lib/python2.7/site-packages/theano/compile/pfunc.py", line 511, in pfunc
on_unused_input=on_unused_input)
File "/home/gallup/anaconda2/lib/python2.7/site-packages/theano/compile/function_module.py", line 1466, in orig_function
defaults)
File "/home/gallup/anaconda2/lib/python2.7/site-packages/theano/compile/function_module.py", line 1324, in create
input_storage=input_storage_lists)
File "/home/gallup/anaconda2/lib/python2.7/site-packages/theano/gof/link.py", line 519, in make_thunk
output_storage=output_storage)[:3]
File "/home/gallup/anaconda2/lib/python2.7/site-packages/theano/gof/vm.py", line 897, in make_all
no_recycling))
File "/home/gallup/anaconda2/lib/python2.7/site-packages/theano/sandbox/cuda/init.py", line 259, in make_thunk
compute_map, no_recycling)
File "/home/gallup/anaconda2/lib/python2.7/site-packages/theano/gof/op.py", line 739, in make_thunk
output_storage=node_output_storage)
File "/home/gallup/anaconda2/lib/python2.7/site-packages/theano/gof/cc.py", line 1073, in make_thunk
keep_lock=keep_lock)
File "/home/gallup/anaconda2/lib/python2.7/site-packages/theano/gof/cc.py", line 1015, in compile
keep_lock=keep_lock)
File "/home/gallup/anaconda2/lib/python2.7/site-packages/theano/gof/cc.py", line 1442, in cthunk_factory
key=key, lnk=self, keep_lock=keep_lock)
File "/home/gallup/anaconda2/lib/python2.7/site-packages/theano/gof/cmodule.py", line 1076, in module_from_key
module = lnk.compile_cmodule(location)
File "/home/gallup/anaconda2/lib/python2.7/site-packages/theano/gof/cc.py", line 1354, in compile_cmodule
preargs=preargs)
File "/home/gallup/anaconda2/lib/python2.7/site-packages/theano/sandbox/cuda/nvcc_compiler.py", line 434, in compile_str
return dlimport(lib_filename)
File "/home/gallup/anaconda2/lib/python2.7/site-packages/theano/gof/cmodule.py", line 293, in dlimport
rval = import(module_name, {}, {}, [module_name])
ImportError: ('The following error happened while compiling the node', GpuAlloc{memset_0=True}(CudaNdarrayConstant{0.0}, Shape_i{0}.0, Shape_i{0}.0, Elemwise{Composite{(((i0 - i1) // i2) + i2)}}[(0, 1)].0, Elemwise{Composite{(((i0 - i1) // i2) + i2)}}[(0, 1)].0), '\n', '/home/gallup/.theano/compiledir_Linux-3.13--generic-x86_64-with-debian-jessie-sid-x86_64-2.7.11-64/tmp8GhxaW/87d76708312aab82a90a5274df9a9cc6.so: undefined symbol: _Z17CudaNdarray_SIZEtPK11CudaNdarray', '[GpuAlloc{memset_0=True}(CudaNdarrayConstant{0.0}, <TensorType(int64, scalar)>, <TensorType(int64, scalar)>, <TensorType(int64, scalar)>, <TensorType(int64, scalar)>)]')