TensorFlow while-loop with TensorArray

吃可爱长大的小学妹 提交于 2019-12-04 01:30:27
Daniel

The solution is to change

input_ta.unstack(xs)

to

input_ta = input_ta.unstack(xs)

and similarly change

output_ta_t.write(time, new_output)

to

output_ta_t = output_ta_t.write(time, new_output)

With these two changes the code runs as expected.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!