Skip to content
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

Refactor python converter functions to not call each other #7281

Merged
merged 5 commits into from
Jan 19, 2023

Conversation

mattsoulanille
Copy link
Member

@mattsoulanille mattsoulanille commented Jan 17, 2023

Make optimize_graph, extract_weights, and write_artifacts, which do separate things, no longer call each other.

To see the logs from the Cloud Build CI, please join either our discussion or announcement mailing list.


This change is Reviewable

Copy link
Collaborator

@Linchenn Linchenn left a comment

Choose a reason for hiding this comment

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

LGTM! Just some nits.

@@ -323,7 +278,7 @@ def extract_weights(graph_def,
initializer_signature_def=initializer_signature_def,
resource_ids_maps=resource_ids_maps,
metadata=metadata)

"""
Copy link
Collaborator

Choose a reason for hiding this comment

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

remove comments?

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks! Sorry, I should have proof-read this better.

# optimized_graph, output_graph, tf_version,
# signature_def, quantization_dtype_map, weight_shard_size_bytes,
# initializer_graph_def, initializer_signature_def,
# resource_ids_maps=resource_ids_maps, metadata=metadata)
Copy link
Collaborator

Choose a reason for hiding this comment

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

remove comments?

Copy link
Collaborator

@pyu10055 pyu10055 left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r1.
Reviewable status: :shipit: complete! 2 of 1 approvals obtained (waiting on @Linchenn and @mattsoulanille)

@mattsoulanille mattsoulanille merged commit 42c7cba into tensorflow:master Jan 19, 2023
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.

3 participants