mirror of
https://github.com/ROCm/jax.git
synced 2025-04-26 18:26:05 +00:00

We're switching to the new terminology to avoid confusion in cases where multiple jax processes are running on a single host, and each process has a unique process_index/host_id. This keeps aliases for the old `host_id` APIs for now, but these will eventually be removed. This was originally commited in b77ef5138b631378e6a8ceb8bafc94fe91239bae, but reverted in 14acd070c2afb11c81fc91f43790577cd48cbf67 due to Google-internal test failures from renaming the local_devices argument name. This change is identical except it also adds staging for the argument name change.
57 lines
1.2 KiB
Python
57 lines
1.2 KiB
Python
# coding=utf-8
|
|
# Copyright 2018 Google LLC
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# https://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
# TODO(phawkins): fix users of these aliases and delete this file.
|
|
|
|
# flake8: noqa: F401
|
|
from jax._src.config import (
|
|
FLAGS,
|
|
)
|
|
from jax._src.api import (
|
|
AxisName,
|
|
ShapedArray,
|
|
ShapeDtypeStruct,
|
|
custom_jvp,
|
|
device_count,
|
|
device_get,
|
|
device_put,
|
|
device_put_replicated,
|
|
device_put_sharded,
|
|
devices,
|
|
eval_shape,
|
|
flatten_fun_nokwargs,
|
|
grad,
|
|
jacfwd,
|
|
jacobian,
|
|
jacrev,
|
|
jit,
|
|
jvp,
|
|
linear_transpose,
|
|
local_device_count,
|
|
make_jaxpr,
|
|
pmap,
|
|
raise_to_shaped,
|
|
tree_flatten,
|
|
tree_map,
|
|
tree_multimap,
|
|
vjp,
|
|
vmap,
|
|
wraps,
|
|
xla_computation,
|
|
_check_callable,
|
|
_std_basis,
|
|
_unravel_array_into_pytree,
|
|
)
|