Debug Tensorflow: Object was never used (type <class ‘tensorflow.python.ops.tensor_array_ops.TensorA

报错信息

Debug Tensorflow: Object was never used (type <class ‘tensorflow.python.ops.tensor_array_ops.TensorA_第1张图片

环境

  • ubuntu
  • tensorflow-gpu

解决

错误来自对TensorArray的使用上。
原代码:

y.write(0,[[20,1,10]])

修改为:

y = y.write(0,[[20,1,10]])

参考:

  • https://github.com/tensorflow/tensorflow/issues/44932

你可能感兴趣的:(机器学习,tensorflow,人工智能,深度学习)