我的TensorFlow运行cifar10多个gpu有什么问题_火车.py

2024-10-06 12:33:17 发布

您现在位置:Python中文网/ 问答频道 /正文

我的系统是:

Linux dl1 3.10.0-229.el7.x86_64 #1 SMP Fri Mar 6 11:36:42 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

以及我的GPU:

enter image description here

运行示例模型如mnistcifar10单个GPU版本是可以的。 所以我觉得我安装tf没问题。在

但是,当我跑的时候:

^{pr2}$

我有个错误:

ValueError: Variable conv1/weights/ExponentialMovingAverage/ does not exist, or was not created with tf.get_variable(). Did you mean to set reuse=None in VarScope?


Tags: 模型gnu示例gpulinuxtf系统not
1条回答
网友
1楼 · 发布于 2024-10-06 12:33:17

有什么代码可以看吗? 我个人认为这个问题是因为你没有为不同的gpu中的不同输入重用共享变量,检查这行tf.get_variable_scope().reuse_variables()是否在每个gpu的循环中

相关问题 更多 >