mirror of
https://github.com/wassname/jaxtyping.git
synced 2026-09-09 11:24:55 +08:00
Added jaxtyping.Array=jnp.ndarray
This commit is contained in:
+1
-4
@@ -21,14 +21,11 @@ import jax.numpy as jnp
|
||||
import jax.random as jr
|
||||
import pytest
|
||||
|
||||
from jaxtyping import f32, Float, jaxtyped, Shaped
|
||||
from jaxtyping import Array, f32, Float, jaxtyped, Shaped
|
||||
|
||||
from .helpers import ParamError, ReturnError
|
||||
|
||||
|
||||
Array = jnp.ndarray
|
||||
|
||||
|
||||
def test_basic(typecheck):
|
||||
@jaxtyped
|
||||
@typecheck
|
||||
|
||||
Reference in New Issue
Block a user