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

pass bundle object to make_tf_function #5708

Merged
merged 2 commits into from
Oct 16, 2023
Merged

pass bundle object to make_tf_function #5708

merged 2 commits into from
Oct 16, 2023

Conversation

haozha111
Copy link
Collaborator

In tf_saved_model_integration, we need to pass the bundle object created within save_stablehlo_graph_as_tf, to the make_tf_function, which then use the tf.Varaibles in the bundle to define input args for xla call module. In this way, the weights won't be inlined in the GraphDef, and the resulting graph size will significantly reduce.

@haozha111 haozha111 requested a review from qihqi October 16, 2023 21:18
@haozha111 haozha111 merged commit 126c9b1 into master Oct 16, 2023
2 checks passed
zpcore pushed a commit that referenced this pull request Oct 19, 2023
* Pass bundle object to make_tf_function, so that it will include tf.variables as args to the XlaCallModule op.

* fix format
ghpvnist pushed a commit to ghpvnist/xla that referenced this pull request Oct 31, 2023
* Pass bundle object to make_tf_function, so that it will include tf.variables as args to the XlaCallModule op.

* fix format
mbzomowski pushed a commit to mbzomowski-test-org/xla that referenced this pull request Nov 16, 2023
* Pass bundle object to make_tf_function, so that it will include tf.variables as args to the XlaCallModule op.

* fix format
chunnienc pushed a commit to chunnienc/xla that referenced this pull request Dec 14, 2023
* Pass bundle object to make_tf_function, so that it will include tf.variables as args to the XlaCallModule op.

* fix format
golechwierowicz pushed a commit that referenced this pull request Jan 12, 2024
* Pass bundle object to make_tf_function, so that it will include tf.variables as args to the XlaCallModule op.

* fix format
bhavya01 pushed a commit that referenced this pull request Apr 22, 2024
* Pass bundle object to make_tf_function, so that it will include tf.variables as args to the XlaCallModule op.

* fix format
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.

2 participants