tensorflow / nmt

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

Pr fix interop threads #420

Open cuixiaom opened 5 years ago

cuixiaom commented 5 years ago

Fixed a bug of CPU parallism of the model. when tf.Session() call starts with no parameters, the interop and intraop parallism setting will use default values, and won't be able to change later, which will lead to lower performance if the model is running on CPU because of no optimized parallism config being set