Skip to content

Commit 6586391

Browse files
authored
u1d-16bit-math (#188)
1 parent 744678e commit 6586391

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

cuequivariance_jax/cuequivariance_jax/segmented_polynomials/segmented_polynomial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def segmented_polynomial(
8585
8686
- ``"naive"``: String dtype names (e.g., ``"float32"``, ``"float64"``, ``"float16"``, ``"bfloat16"``).
8787
Also supports ``"tensor_float32"`` for TensorFloat-32 mode.
88-
- ``"uniform_1d"``: String values ``"float32"`` or ``"float64"`` only.
88+
- ``"uniform_1d"``: String dtype names (e.g., ``"float32"``, ``"float64"``, ``"float16"``, ``"bfloat16"``).
8989
- ``"indexed_linear"``: CUBLAS compute type strings such as ``"CUBLAS_COMPUTE_32F"``, ``"CUBLAS_COMPUTE_32F_FAST_TF32"``,
9090
``"CUBLAS_COMPUTE_32F_PEDANTIC"``, ``"CUBLAS_COMPUTE_64F"``, etc.
9191

cuequivariance_jax/cuequivariance_jax/segmented_polynomials/segmented_polynomial_uniform_1d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def fn(op, d: cue.SegmentedTensorProduct):
152152
raise ValueError(f"Buffer shapes not compatible {[b.shape for b in buffers]}")
153153

154154
if math_dtype is not None:
155-
supported_dtypes = {"float32", "float64"}
155+
supported_dtypes = {"float32", "float64", "float16", "bfloat16"}
156156
if math_dtype not in supported_dtypes:
157157
raise ValueError(
158158
f"method='uniform_1d' only supports math_dtype equal to {supported_dtypes}, got '{math_dtype}'."

0 commit comments

Comments
 (0)