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

貌似环境兼容问题 #12

Open
XiHenSuper opened this issue May 5, 2023 · 6 comments
Open

貌似环境兼容问题 #12

XiHenSuper opened this issue May 5, 2023 · 6 comments

Comments

@XiHenSuper
Copy link

原始报错TypeError: Cannot interpret feed_dict key as Tensor: Tensor Tensor("Placeholder:0", shape=(3, 3, 3, 10), dtype=float32) is not an element of this graph.

加了```
from keras import backend as K
K.clear_session()

后报错:
`ValueError: Tensor("Placeholder:0", shape=(3, 3, 3, 10), dtype=float32) must be from the same graph as Tensor("conv1/kernel:0", shape=(3, 3, 3, 10), dtype=float32_ref).`
@bubbliiiing
Copy link
Owner

什么版本啊

@XiHenSuper
Copy link
Author

tensorflow:1.13.1
keras:2.2.4

@bubbliiiing
Copy link
Owner

感觉好像没啥问题,你换成2.1.5看看,keras,如果还不行你截个图看看……

@XiHenSuper
Copy link
Author

之前换成2.1.5仍然不行,
仍然报错:

ValueError: Tensor("Placeholder:0", shape=(3, 3, 3, 10), dtype=float32) must be from the same graph as Tensor("conv1/kernel:0", shape=(3, 3, 3, 10), dtype=float32_ref).

@bubbliiiing
Copy link
Owner

截图截图

@bubbliiiing
Copy link
Owner

真不合理

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