tensorflow / nmt

TensorFlow Neural Machine Translation Tutorial
Apache License 2.0
6.35k stars 1.96k forks source link

OSError: [Errno 12] Cannot allocate memory #441

Open luckysofia opened 5 years ago

luckysofia commented 5 years ago

When I calculate BLEU scores, there is an error:

bleu_output = subprocess.check_output(cmd, shell=True)

File "/data/users/anaconda3/envs/tf/lib/python3.6/subprocess.py", line 356, in check_output *kwargs).stdout File "/data/users/anaconda3/envs/tf/lib/python3.6/subprocess.py", line 423, in run with Popen(popenargs, **kwargs) as process: File "/data/users/anaconda3/envs/tf/lib/python3.6/subprocess.py", line 729, in init restore_signals, start_new_session) File "/data/users/anaconda3/envs/tf/lib/python3.6/subprocess.py", line 1295, in _execute_child restore_signals, start_new_session, preexec_fn) OSError: [Errno 12] Cannot allocate memory

Can anybody help me solve this problem?