You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello ! I am a student from China and I am learning about ESN recently. I have read your ESN code on github.But when I tried to reproduce the code myself(on tensorflow2), I found the following error. Could you tell me what the reason is?
filename:ESN-usage
code: model = keras.models.Sequential()
model.add(recurrent_layer)
model.add(output)
TypeError: You are attempting to use Python control flow in a layer that was not declared to be dynamic. Pass dynamic=True to the class constructor.
Encountered error:
"""
using a tf.Tensor as a Python bool 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:
Hello ! I am a student from China and I am learning about ESN recently. I have read your ESN code on github.But when I tried to reproduce the code myself(on tensorflow2), I found the following error. Could you tell me what the reason is?
filename:ESN-usage
code:
model = keras.models.Sequential()
model.add(recurrent_layer)
model.add(output)
TypeError: You are attempting to use Python control flow in a layer that was not declared to be dynamic. Pass
dynamic=True
to the class constructor.Encountered error:
"""
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: