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
Wrapped tf.nn.RNNCell* layers are incompatible with tf.keras.layers.Bidirectional #26581
Comments
Thanks for reporting the issue, I will send some fix within this week. |
This is weird. Why |
See #26581 for more details. PiperOrigin-RevId: 248418981
Sorry for the very late reply. The issue was caused by the serial/deserialization for a non-keras object, and the nn.RNNCell wrappers are not keras object. The commit 0667725 is trying to fix the custom object serialization issue, which allows you to do something like https://gist.github.com/fchollet/9e361d1fe9046b512a2f3e0d31382a96. We are still discussing the issue internally and see how we will fix this issue. |
Sorry for the long wait, this should now by fixed by e62dc43 |
Split the v2 implementation into separate module so that the v1 and v2 class can have same name in the json config. Fixing for tensorflow#26581. PiperOrigin-RevId: 251074685
System information
2.0.0.dev20190311
Describe the current behavior
In the TensorFlow 2.0 preview, the
tf.nn.RNNCellDropoutWrapper
andtf.nn.RNNCellResidualWrapper
wrappers are incompatible withtf.keras.layers.Bidirectional
. It raises an "Unknown layer" exception.Describe the expected behavior
The RNN classes in
tf.nn
should be compatible with all Keras RNN layers.Code to reproduce the issue
Other info / logs
@qlzh727
The text was updated successfully, but these errors were encountered: