Skip to content

docs: clarify save vs save_weights for TFQ models - #1115

Open
akhil9tiet wants to merge 2 commits into
tensorflow:masterfrom
akhil9tiet:docs/899-save-vs-save-weights
Open

akhil9tiet wants to merge 2 commits into
tensorflow:masterfrom
akhil9tiet:docs/899-save-vs-save-weights

Conversation

@akhil9tiet

Copy link
Copy Markdown

Fixes #899

Adds a short note to docs/concepts.md clarifying that model.save() does not work for TFQ models with custom quantum layers, and that model.save_weights() should be used instead (with the model architecture rebuilt in Python before loading).

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the docs/concepts.md documentation by replacing curly apostrophes with straight apostrophes, updating a link for 'Quantum convolutional neural networks' to point to an arXiv paper, and adding a new 'Saving models' section that explains how to save and load TensorFlow Quantum models using weights serialization. There are no review comments, so I have no feedback to provide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document behavior of save versus save_weights

1 participant