-
Notifications
You must be signed in to change notification settings - Fork 19.5k
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
Tensorflow 2.14 breaks dictionary output from a functional model #18399
Comments
Here's a bug about the root cause on the tensorflow side -> tensorflow/tensorflow#60687 Ideally this would just be fixed in tensorflow proper. On our side, we could do two things
|
Roughly it looks like this is an issue with |
Thanks for the report. Is this being actively fixed by the TensorFlow team? Seems like a significant issue. |
No idea, commented on the bug and we can try to follow up more. It actually doesn't pop up with |
I think we can close this issue since it has no problem with the Keras 3 with the below code. import keras
batch = keras.ops.ones((2, 1))
inputs = keras.Input(shape=(1,))
outputs = {
"sum": keras.layers.Add()((inputs, inputs)),
"diff": keras.layers.Subtract()((inputs, inputs)),
}
model = keras.Model(inputs, outputs)
model.predict(batch) |
This issue is stale because it has been open for 14 days with no activity. It will be closed if no further activity occurs. Thank you. |
This issue was closed because it has been inactive for 28 days. Please reopen if you'd like to work on this further. |
When tf 2.14 releases, we will face a bug with dictionary output from a functional model.
https://colab.research.google.com/gist/mattdangerw/019d1ebcec746d6f7424248911cf16ae/tf-2-14-bug.ipynb
I am not sure this will show up on a colab right away, as it actually depends on the specific version of
typing-extensions
(this is a pretty obtuse bug). But we will see this in a clean pip environment which picks up the latesttyping-extensions
.After the 2.14 release:
The text was updated successfully, but these errors were encountered: