Skip to content

Commit

Permalink
feat: import lax argument classes (#99)
Browse files Browse the repository at this point in the history
Signed-off-by: nstarman <nstarman@users.noreply.github.com>
  • Loading branch information
nstarman authored Nov 23, 2024
1 parent 8ec0ff0 commit 15bda5d
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions src/quaxed/lax/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,19 @@
"with_sharding_constraint",
# ----- Linear Algebra Operators -----
"linalg",
# ----- Argument classes -----
"ConvDimensionNumbers",
"ConvGeneralDilatedDimensionNumbers",
"DotAlgorithm",
"DotAlgorithmPreset",
"FftType",
"GatherDimensionNumbers",
"GatherScatterMode",
"Precision",
"PrecisionLike",
"RandomAlgorithm",
"RoundingMethod",
"ScatterDimensionNumbers",
]


Expand All @@ -184,6 +197,23 @@

from . import linalg

# Explicit imports that don't need to be quaxified
# isort: split
from jax.lax import (
ConvDimensionNumbers,
ConvGeneralDilatedDimensionNumbers,
DotAlgorithm,
DotAlgorithmPreset,
FftType,
GatherDimensionNumbers,
GatherScatterMode,
Precision,
PrecisionLike,
RandomAlgorithm,
RoundingMethod,
ScatterDimensionNumbers,
)


def __dir__() -> list[str]:
"""List the module contents."""
Expand Down

0 comments on commit 15bda5d

Please sign in to comment.