Getting below error while running the example code of nn-semparse 
<https://github.com/arunchaganty/nn-semparse>. It looks like it's an issue 
with Theano. Can someone help me figure this out please.

(py27) ➜  nn-semparse git:(master) python src/py/main.py -d 100 -i 50 -o 50 
-t 20 -p attention -c lstm -m attention -u 1 --train-data data/geo880/
processed-lesscopy/geo880_train600.tsv --dev-frac 0.2 --save-file params > 
out_file
Split dataset into 480 train, 120 dev examples
Initializing parameters...
Traceback (most recent call last):
  File "src/py/main.py", line 769, in <module>
    main()
  File "src/py/main.py", line 766, in main
    run()
  File "src/py/main.py", line 712, in run
    model = get_model(spec)
  File "src/py/main.py", line 232, in get_model
    model = constructor(spec)
  File "/home/chankey/Desktop/projects/nn-semparse/src/py/neural.py", line 
56, in __init__
    self.setup()
  File "/home/chankey/Desktop/projects/nn-semparse/src/py/attention.py", 
line 22, in setup
    self.setup_encoder()
  File "/home/chankey/Desktop/projects/nn-semparse/src/py/attention.py", 
line 60, in setup_encoder
    inputs=[x], outputs=[dec_init_state, annotations])
  File 
"/home/chankey/anaconda3/envs/py27/lib/python2.7/site-packages/theano/compile/function.py"
, line 317, in function
    output_keys=output_keys)
  File 
"/home/chankey/anaconda3/envs/py27/lib/python2.7/site-packages/theano/compile/pfunc.py"
, line 486, in pfunc
    output_keys=output_keys)
  File 
"/home/chankey/anaconda3/envs/py27/lib/python2.7/site-packages/theano/compile/function_module.py"
, line 1841, in orig_function
    fn = m.create(defaults)
  File 
"/home/chankey/anaconda3/envs/py27/lib/python2.7/site-packages/theano/compile/function_module.py"
, line 1715, in create
    input_storage=input_storage_lists, storage_map=storage_map)
  File 
"/home/chankey/anaconda3/envs/py27/lib/python2.7/site-packages/theano/gof/link.py"
, line 699, in make_thunk
    storage_map=storage_map)[:3]
  File 
"/home/chankey/anaconda3/envs/py27/lib/python2.7/site-packages/theano/gof/vm.py"
, line 1091, in make_all
    impl=impl))
  File 
"/home/chankey/anaconda3/envs/py27/lib/python2.7/site-packages/theano/gof/op.py"
, line 955, in make_thunk
    no_recycling)
  File 
"/home/chankey/anaconda3/envs/py27/lib/python2.7/site-packages/theano/gof/op.py"
, line 858, in make_c_thunk
    output_storage=node_output_storage)
  File 
"/home/chankey/anaconda3/envs/py27/lib/python2.7/site-packages/theano/gof/cc.py"
, line 1217, in make_thunk
    keep_lock=keep_lock)
  File 
"/home/chankey/anaconda3/envs/py27/lib/python2.7/site-packages/theano/gof/cc.py"
, line 1157, in __compile__
    keep_lock=keep_lock)
  File 
"/home/chankey/anaconda3/envs/py27/lib/python2.7/site-packages/theano/gof/cc.py"
, line 1620, in cthunk_factory
    key=key, lnk=self, keep_lock=keep_lock)
  File 
"/home/chankey/anaconda3/envs/py27/lib/python2.7/site-packages/theano/gof/cmodule.py"
, line 1140, in module_from_key
    module = self._get_from_key(key)
  File 
"/home/chankey/anaconda3/envs/py27/lib/python2.7/site-packages/theano/gof/cmodule.py"
, line 1039, in _get_from_key
    return self._get_module(name)
  File 
"/home/chankey/anaconda3/envs/py27/lib/python2.7/site-packages/theano/gof/cmodule.py"
, line 712, in _get_module
    self.module_from_name[name] = dlimport(name)
  File 
"/home/chankey/anaconda3/envs/py27/lib/python2.7/site-packages/theano/gof/cmodule.py"
, line 309, in dlimport
    rval = __import__(module_name, {}, {}, [module_name])
ImportError: ('The following error happened while compiling the node', 
Elemwise{sub,no_inplace}(TensorConstant{-1}, Shape_i{0}.0), '\n', 
'/home/chankey/.theano/compiledir_Linux-4.15--generic-x86_64-with-debian-buster-sid-x86_64-2.7.15-64/tmpteT4BD/ebd15923a8ccd2743164b0ff9703cac30cf1c0b3087be54016ea3a70fb272efd.so:
 
file too short')



-- 

--- 
You received this message because you are subscribed to the Google Groups 
"theano-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to