Created
August 23, 2024 21:46
-
-
Save apivovarov/be865089bfa73b2134cee24e217cf27f to your computer and use it in GitHub Desktop.
[JAX] convert hlo.pb to text hlo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from jax.lib.xla_bridge import xla_client | |
fname = "model.hlo.pb" | |
with open(fname, mode="rb") as f: | |
comp = xla_client.XlaComputation(f.read()) | |
print(comp.as_hlo_text()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment