-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Refactor python converter functions to not call each other #7281
Conversation
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.
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) | |||
|
|||
""" |
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.
remove comments?
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! 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) |
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.
remove comments?
a620cca
to
7eda00a
Compare
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.
Reviewed 1 of 1 files at r1.
Reviewable status: complete! 2 of 1 approvals obtained (waiting on @Linchenn and @mattsoulanille)
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