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

Replace jax.lib.xla_client._xla with jax.lib.xla_extension #4838

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"""Runtime components for use by the XLA executor."""

from jax.lib import xla_client
from jax.lib import xla_extension
import numpy as np

from tensorflow_federated.proto.v0 import computation_pb2 as pb
Expand Down Expand Up @@ -116,7 +117,7 @@ def __init__(
'Unsupported computation type: {}'.format(which_computation)
)
xla_comp = xla_serialization.unpack_xla_computation(comp_pb.xla.hlo_module)
mhlo_module = xla_client._xla.mlir.xla_computation_to_mlir_module(xla_comp)
mhlo_module = xla_extension.mlir.xla_computation_to_mlir_module(xla_comp)
compile_options = xla_client.CompileOptions()
self._executable = backend.compile(mhlo_module, compile_options)
self._inverted_parameter_tensor_indexes = list(
Expand Down