Use PEP484-style exports in several submodules

This commit is contained in:
Jake VanderPlas 2024-08-14 08:59:56 -07:00
parent df2e9c3836
commit 5cc689976f
4 changed files with 12 additions and 5 deletions

View File

@ -13,6 +13,6 @@
# limitations under the License.
from jax._src.custom_batching import (
custom_vmap,
sequential_vmap,
custom_vmap as custom_vmap,
sequential_vmap as sequential_vmap,
)

View File

@ -13,5 +13,5 @@
# limitations under the License.
from jax._src.custom_transpose import (
custom_transpose,
custom_transpose as custom_transpose,
)

View File

@ -12,4 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from jax._src.distributed import (initialize, shutdown)
from jax._src.distributed import (
initialize as initialize,
shutdown as shutdown,
)

View File

@ -12,4 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from jax._src.dlpack import (to_dlpack, from_dlpack, SUPPORTED_DTYPES)
from jax._src.dlpack import (
to_dlpack as to_dlpack,
from_dlpack as from_dlpack,
SUPPORTED_DTYPES as SUPPORTED_DTYPES,
)