You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assertlen(_RNG_POOPER_STACK) >0, "Attempted `mk_rng()` outside of a `RngPooperContext`"
30
-
assert (
31
-
_RNG_POOPER_STACK[-1] isnotNone
32
-
), "Attempted `mk_rng()` with a `None` `RngPooperContext`. You're probably seeing this error message because you forgot to include a `rng` kwarg in your function call: `t2j(f)(..., rng=jax.random.PRNGKey(0))`. "
30
+
assert_RNG_POOPER_STACK[-1] isnotNone, (
31
+
"Attempted `mk_rng()` with a `None` `RngPooperContext`. You're probably seeing this error message because you forgot to include a `rng` kwarg in your function call: `t2j(f)(..., rng=jax.random.PRNGKey(0))`. "
32
+
)
33
33
return_RNG_POOPER_STACK[-1].poop()
34
34
35
35
@@ -82,9 +82,9 @@ def j2t_array(jax_array):
82
82
classTorchish:
83
83
def__init__(self, value):
84
84
# See https://github.com/google/jax/issues/2115 re `isinstance(value, jnp.ndarray)`.
0 commit comments