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

Use PEP484-style exports in several submodules #23059

Merged
merged 1 commit into from
Aug 14, 2024
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions jax/custom_batching.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
2 changes: 1 addition & 1 deletion jax/custom_transpose.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
# limitations under the License.

from jax._src.custom_transpose import (
custom_transpose,
custom_transpose as custom_transpose,
)
5 changes: 4 additions & 1 deletion jax/distributed.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
6 changes: 5 additions & 1 deletion jax/dlpack.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)