c++ - F tensorflow/core/common_runtime/device_factory.cc :77] Duplicate registration of device factory for type GPU with the same priority 210

标签 c++ tensorflow

当执行我的二进制 C++ 文件时,发生了这个错误。 我使用 make all 用 tensorflow_cc.so 编译我的 c++ 文件,tensorflow 的版本是 1.8。 有人遇到过这个问题吗?

最佳答案

我们最近遇到了这个错误。当我们无意中链接到 libtensorflow.so (-ltensorflow) 和 libtensorflow_cc.so (-ltensorflow_cc) 时,就会发生这种情况。当我们选择一个时它就消失了。

关于c++ - F tensorflow/core/common_runtime/device_factory.cc :77] Duplicate registration of device factory for type GPU with the same priority 210,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51241471/

相关文章:

c++ - Malloc 无法在 Windows 上分配 1 GiB 的内存

c++ - 如何有效地使用 std::threads 来减少运行时间

c++ - Sizeof 在模板中失败,即使类型都已定义

python - 为什么在使用softmax_cross_entropy_with_logits时网络的输出不能经过一个softmax?

c++ - ostream 引用运算符 <<

c++ - std::decay 零长度数组

python - 如何在批处理中正确使用 Tensorflow 数据集?

Python tensorflow 精简版错误 :Cannot set tensor: Got tensor of type 1 but expected type 3 for input 88

c++ - 如何构建静态库并将它们链接到 linux 平台中的 c++ 项目?

python - 为什么 q_net 有这么多的输入层?