Is there any way to get the computational graph for a function with Python while control flow? #16827
Unanswered
ToshiyukiBandai
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Data-dependent python |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I am trying to visualize the computational graph for a function with Python while control flow (I followed a guide by https://bnikolic.co.uk/blog/python/jax/2022/02/22/jax-outputgraph-rev.html). For example, for a function
I tried to use
z = jax.xla_computation(test_func)(3.0)
, but it did not work because of the value dependent loop. The error message wasIs there any way to produce the HLO intermediate representation of such functions? For example, can I explicitly unroll the function and feed the unrolled function into jax.xla_computation?
Beta Was this translation helpful? Give feedback.
All reactions