Repository navigation
docs: explain save vs save_weights for TFQ layers - #1120
SripriyaDevarapalli wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
Code Review
This pull request updates the design documentation in docs/design.md to include a new section on saving Keras models. It explains why saving a complete model with tf.keras.Model.save() can fail for certain layers and provides a code example demonstrating how to use save_weights() and load_weights() as a workaround. There are no review comments, so there is no feedback to provide.
|
Hey @mhucka I've created a PR #1120 addressing the documentation issue regarding the behavior of The changes explain the reported serialization issue, document Thank you! |
|
I also noticed that the CI run failed in the Tutorial tests job. The logs show an This appears to be a missing dependency in the tutorial test environment rather than an issue caused by my documentation changes. I wanted to bring this to your attention for investigation. Thank you! |
Description
This pull request addresses the documentation issue in #899 regarding the behavior of
tf.keras.Model.save()versussave_weights()for TensorFlow Quantum (TFQ) layers.Summary of changes
save_weights()as an alternative when complete model serialization fails.Related to #899 and #56.
How Has This Been Tested?
git diff --cached --checksuccessfully.Test Configuration:
tf-kerasversion: 2.19.0AI use
Checklist