查看: 1287|回复: 0

tf错误记录

[复制链接]

665

主题

1234

帖子

6568

积分

xdtech

Rank: 5Rank: 5

积分
6568
发表于 2019-11-25 23:47:24 | 显示全部楼层 |阅读模式
ValueError: Tensor must be from the same graph as Tensor with Bidirectinal RNN in Tensorflow

这个错误,意思是:tensors一部分在一个graph定义,另一部分在另一个graph。
出现的原因:
在tensors的中间,有tf.reset_default_graph()这样的语句。它会重开一个graph,这样它的前后,就属于不同的graph。


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表