Skip to content

Commit a516988

Browse files
hawkinspGoogle-ML-Automation
authored andcommitted
[JAX] Remove calls to xla_computation_to_mlir_module.
This (private) API will shortly be deleted, and hlo_to_stablehlo is its replacement. PiperOrigin-RevId: 745333506
1 parent b8d9e7f commit a516988

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

jaxlib/xla/xla_client_test.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,10 @@
5555
float8_e5m2fnuz = ml_dtypes.float8_e5m2fnuz
5656
float8_e8m0fnu = ml_dtypes.float8_e8m0fnu
5757
ops = xla_client.ops
58-
xla_computation_to_mlir_module = (
59-
xla_client._xla.mlir.xla_computation_to_mlir_module)
58+
59+
def xla_computation_to_mlir_module(c: xla_client.XlaComputation) -> bytes:
60+
return xla_client._xla.mlir.hlo_to_stablehlo(
61+
c.as_serialized_hlo_module_proto())
6062

6163

6264
def execute_with_python_values(executable, arguments, backend): # pylint: disable=invalid-name

0 commit comments

Comments
 (0)