-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Preparation for switch in Keras serialization format #1851
Conversation
Codecov ReportBase: 100.00% // Head: 100.00% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## master #1851 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 50 50
Lines 2920 2929 +9
=========================================
+ Hits 2920 2929 +9
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
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 PR! Please make the changes and the CI will pass.
autokeras/utils/utils.py
Outdated
|
||
def serialize_keras_object(obj): | ||
if hasattr(tf.keras.utils, "legacy"): | ||
return tf.keras.utils.legacy.serialize_keras_object(obj) |
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.
Please append # pragma: no cover
to this line to mark it as not covered.
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.
Fixed.
autokeras/utils/utils.py
Outdated
config, module_objects=None, custom_objects=None, printable_module_name=None | ||
): | ||
if hasattr(tf.keras.utils, "legacy"): | ||
return tf.keras.utils.legacy.deserialize_keras_object( |
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.
Please append # pragma: no cover
to this line to mark it as not covered.
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.
Fixed.
This PR changes serialization API calls in AutoKeras to the legacy APIs in preparation for a switch to the new Keras object serialization format. There is no change in functionality now by this switch to the legacy APIs.