其他分享
首页 > 其他分享> > 【TensorFlow】InternalError: Failed copying input tensor

【TensorFlow】InternalError: Failed copying input tensor

作者:互联网

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://stackoverflow.com/questions/37313818/tensorflow-dst-tensor-is-not-initialized

主要原因在于batch_size太大,内存无法负载,将batch_size适当调小即可正常运行。

标签:tensor,InternalError,Failed,内存,GPU,initialized,TensorFlow
来源: https://www.cnblogs.com/harmanchen/p/15517645.html