Skip to content

Commit

Permalink
fix util dump_hlo_graph with new jax API
Browse files Browse the repository at this point in the history
  • Loading branch information
pfackeldey committed Oct 29, 2024
1 parent 2d31648 commit da4c737
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/evermore/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,4 +167,4 @@ def f(x: jax.Array) -> jax.Array:
filepath = pathlib.Path('graph.gv')
filepath.write_text(dump_hlo_graph(f, x), encoding='ascii')
"""
return jax.xla_computation(fun)(*args, **kwargs).as_hlo_dot_graph()
return jax.jit(fun).lower(*args, **kwargs).compiler_ir("hlo").as_hlo_dot_graph() # type: ignore[union-attr]

0 comments on commit da4c737

Please sign in to comment.