如下所示,简单明了,希望能帮助到你
解决:
Operation was explicitly assigned to /device:GPU:0 but available devices are [ /job:localhost/replica:0/task:0/cpu:0 ].
tf.app.Flags.DEFINE_boolean(‘clone_on_cpu’,False,’use CPUs to deploy clones.’)
改为:
tf.app.Flags.DEFINE_boole