Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: Input graph and Layer graph are not the same: Tensor("Reshape_1:0", shape=(?, 256), dtype=float32) is not from the passed-in graph. #11

Open
zouyihui opened this issue Jun 7, 2022 · 1 comment

Comments

@zouyihui
Copy link

zouyihui commented Jun 7, 2022

您好,我想请教一下,当我执行net = tf.layers.dense(patterns, 3, activation=tf.nn.relu, name="outnet_fc1")的时候报错:
ValueError: Input graph and Layer graph are not the same: Tensor("Reshape_1:0", shape=(?, 256), dtype=float32) is not from the passed-in graph.可能是什么问题,应该怎么解决了

@VachelHU
Copy link
Owner

VachelHU commented Jun 7, 2022

这是 输入的张量shape 不对,检查下数据输入

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants