Skip to content

Commit

Permalink
[array API] clean up some unused/unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
jakevdp committed Jul 24, 2024
1 parent d9a7cb4 commit 18e3e7b
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 37 deletions.
7 changes: 2 additions & 5 deletions jax/experimental/array_api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@
square as square,
squeeze as squeeze,
stack as stack,
std as std,
subtract as subtract,
sum as sum,
take as take,
Expand All @@ -174,6 +175,7 @@
unique_inverse as unique_inverse,
unique_values as unique_values,
unstack as unstack,
var as var,
vecdot as vecdot,
where as where,
zeros as zeros,
Expand All @@ -199,11 +201,6 @@
hypot as hypot,
)

from jax.experimental.array_api._statistical_functions import (
std as std,
var as var,
)

from jax.experimental.array_api._utility_functions import (
__array_namespace_info__ as __array_namespace_info__,
)
Expand Down
5 changes: 0 additions & 5 deletions jax/experimental/array_api/_array_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,9 @@

from __future__ import annotations

from typing import Any

import jax
from jax._src.array import ArrayImpl
from jax.experimental.array_api._version import __array_api_version__
from jax.sharding import Sharding

from jax._src.lib import xla_extension as xe


def _array_namespace(self, /, *, api_version: None | str = None):
Expand Down
25 changes: 0 additions & 25 deletions jax/experimental/array_api/_statistical_functions.py

This file was deleted.

3 changes: 1 addition & 2 deletions jax/experimental/array_api/linalg.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,11 @@
svd as svd,
svdvals as svdvals,
tensordot as tensordot,
trace as trace,
vecdot as vecdot,
vector_norm as vector_norm,
)

from jax.numpy.linalg import trace as trace

from jax.experimental.array_api._linear_algebra_functions import (
matrix_rank as matrix_rank,
pinv as pinv,
Expand Down

0 comments on commit 18e3e7b

Please sign in to comment.