-
Notifications
You must be signed in to change notification settings - Fork 56
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
Comments
tensorflow 1.9 py3.6 kera 2.2 |
|
q 1377854874 |
|
sorry 我留错了 应该是q 1377854974 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
是否有人跑通了这个代码?希望各位大佬能帮帮忙,可能是由于我的版本问题一直在报错,无法跑通模型,报错情况如下:
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 Pythonbool
")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 Pythonbool
is not allowed in Graph execution. Use Eager execution or decorate this function with @tf.function.The text was updated successfully, but these errors were encountered: