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

报错信息

在这里插入图片描述

环境

  • ubuntu
  • tensorflow-gpu

解决

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

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

修改为:

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

参考:

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

猜你喜欢

转载自blog.csdn.net/weixin_38812492/article/details/113760007