如何禁用 Tensorflow 的多线程? [英] How to disable Tensorflow's multi-threading?

查看:36
本文介绍了如何禁用 Tensorflow 的多线程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用不支持多线程的模拟器运行 Tensorflow 程序.我在第 38 行的 tensorflow/core/common_runtime/local_device.cc 中将 intra_op_parallelism_threads 更改为 1,但只要踏上开始,我仍然会收到运行时错误.我的猜测是多标题设置仍然存在.是否可以禁用多线程?

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?

推荐答案

从 2017 年初开始,您不能禁用 tensorflow 的多线程.

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

这篇关于如何禁用 Tensorflow 的多线程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆