nusnlp / c2e-mt-benchmark

Chinese-to-English Machine Translation Benchmark
BSD 3-Clause "New" or "Revised" License
21 stars 6 forks source link

How to set Theano flags #3

Open xiaoqiangkx opened 5 years ago

xiaoqiangkx commented 5 years ago

I failed to run the scripts/translate-norerank.sh nist input.seg output

 "The file scan_perform.c is not available. This do"
/home/deployer/clark/anaconda2/envs/c2e_py2/lib/python2.7/site-packages/theano/scan_module/scan_perform_ext.py:76: UserWarning: The file scan_perform.c is not available. This donot happen normally. You are probably in a strangesetup. This mean Theano can not use the cython code for scan. If youwant to remove this warning, use the Theano flag'cxx=' (set to an empty string) to disable all ccode generation.

Could you tell me how to set Theano flags.

chrhad commented 5 years ago

This could be the installation problem of Theano. Please follow the installation guide of Theano to check if you have successfully installed it.

In any case, my Theano flags are as follows:

export THEANO_FLAGS=base_compiledir=/tmp/christian/theano.NOBACKUP,mode=FAST_RUN,floatX=float32,device=dev1->cuda0;dev2->cuda2;dev3->cuda3,on_unused_input=warn

Hope this helps.