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
IDE raises a ValueError: A KerasTensor cannot be used as input to a TensorFlow function.
I guess this is because of my keras version?
Anyway, IDE suggests me to wrap tf_fn in a layer, and it worked!
My env_lib versions are:
keras 3.6.0
tensorflow 2.18.0
Thought it can work, I am still not sure is it possible to throw the wrapper away(i.e. can we directly use?).
And hopefully this isuue can help someone who encountered similar problems.
The text was updated successfully, but these errors were encountered:
In 16_nlp_with_rnns_and_attentions.jpynb,
when using manual masking in code block(44-45),
IDE raises a ValueError: A KerasTensor cannot be used as input to a TensorFlow function.
I guess this is because of my keras version?
Anyway, IDE suggests me to wrap
tf_fn
in a layer, and it worked!My env_lib versions are:
keras 3.6.0
tensorflow 2.18.0
Thought it can work, I am still not sure is it possible to throw the wrapper away(i.e. can we directly use?).
And hopefully this isuue can help someone who encountered similar problems.
The text was updated successfully, but these errors were encountered: