-
Notifications
You must be signed in to change notification settings - Fork 19.6k
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
Fixes inconsistent serialization logic for inputs #20993
Fixes inconsistent serialization logic for inputs #20993
Conversation
…zation removes unnecessary imports
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #20993 +/- ##
==========================================
- Coverage 82.45% 82.45% -0.01%
==========================================
Files 562 562
Lines 53303 53314 +11
Branches 8257 8258 +1
==========================================
+ Hits 43949 43958 +9
- Misses 7338 7340 +2
Partials 2016 2016
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the bug fix!
* Removes unnesting logic for input tensors in functional model deserialization flow * Adds test case for verifying nested input restoration after deserialization removes unnecessary imports * fixes imports
* Removes unnesting logic for input tensors in functional model deserialization flow * Adds test case for verifying nested input restoration after deserialization removes unnecessary imports * fixes imports
Issue
Consider a model where its
input
property is represented as[[[input_layer_1, 0, 0]]]
.When serialized and deserialized, it turns into
[[input_layer_1, 0, 0]]
.Fix
This change removes the input_tensor un-nesting logic from
functional_from_config
method which adds special handling for the above case, now the code proceeds with the regular flow irrespective of triply nested input arrays and maintains consistency across serialization round-trips.