TensorFlow-GPU执行模型训练时报错:
InternalError: Failed copying input tensor from /job:localhost/replica:0/task:0/device:CPU:0 to /job:localhost/replica:0/task:0/device:GPU:0 in order to run _EagerConst: Dst tensor is not initialized.
解决方法:
【TensorFlow: Dst tensor is not initialized - Stack Overflow】
https://*.com/questions/37313818/tensorflow-dst-tensor-is-not-initialized
主要原因在于batch_size太大,内存无法负载,将batch_size适当调小即可正常运行。