How to disable Tensorflow's multi-threading?

僤鯓⒐⒋嵵緔 提交于 2021-02-09 08:18:45

问题


I'm running Tensorflow programs with a simulator that does not support multi-threading. I changed intra_op_parallelism_threads to 1 in tensorflow/core/common_runtime/local_device.cc at line 38 but I still get runtime errors as soon as the treading starts. My guess is the multi-theading setup is still there. Is it possible to disable multi-threading?


回答1:


You cannot, as of early 2017, disable tensorflow's multithreading.



来源:https://stackoverflow.com/questions/44767233/how-to-disable-tensorflows-multi-threading

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!