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

跑通代码? #26

Open
123Wynne opened this issue Apr 20, 2023 · 5 comments
Open

跑通代码? #26

123Wynne opened this issue Apr 20, 2023 · 5 comments

Comments

@123Wynne
Copy link

是否有人跑通了这个代码?希望各位大佬能帮帮忙,可能是由于我的版本问题一直在报错,无法跑通模型,报错情况如下:
Using TensorFlow backend.
Traceback (most recent call last):
File "D:\Literature\Code\MBLLEN\MBLLEN\main\test.py", line 31, in
mbllen = Network.build_mbllen((None, None, 3))
File "D:\Literature\Code\MBLLEN\MBLLEN\main\Network.py", line 24, in build_mbllen
if self.bias:
File "E:\Python\anaconde1\lib\site-packages\tensorflow\python\ops\resource_variable_ops.py", line 498, in bool
return bool(self.read_value())
File "E:\Python\anaconde1\lib\site-packages\tensorflow\python\framework\ops.py", line 900, in bool
self._disallow_bool_casting()
File "E:\Python\anaconde1\lib\site-packages\tensorflow\python\framework\ops.py", line 507, in _disallow_bool_casting
self._disallow_in_graph_mode("using a tf.Tensor as a Python bool")
File "E:\Python\anaconde1\lib\site-packages\tensorflow\python\framework\ops.py", line 494, in _disallow_in_graph_mode
raise errors.OperatorNotAllowedInGraphError(
tensorflow.python.framework.errors_impl.OperatorNotAllowedInGraphError: using a tf.Tensor as a Python bool is not allowed in Graph execution. Use Eager execution or decorate this function with @tf.function.

@rxqH
Copy link

rxqH commented Apr 20, 2023

tensorflow 1.9 py3.6 kera 2.2

@123Wynne
Copy link
Author

您好,您是否跑通了?是否可以加一个联系方式呢?

@rxqH
Copy link

rxqH commented Apr 20, 2023

q 1377854874

@123Wynne
Copy link
Author

q 137785487
我昨晚已经加您了,您有时间还要同意一下。

@rxqH
Copy link

rxqH commented Apr 21, 2023

sorry 我留错了 应该是q 1377854974

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