mirror of
https://github.com/google-deepmind/deepmind-research.git
synced 2026-08-17 16:43:30 +08:00
Remove references to deprecated jax.ShapedArray
This is deprecated as of https://github.com/google/jax/pull/15263: most users will never need to use ShapedArray directly, and so having it exposed in the top-level public namespace causes undue confusion. PiperOrigin-RevId: 520846838
This commit is contained in:
committed by
Saran Tunyasuvunakool
parent
9d01171d43
commit
f905943c13
@@ -154,7 +154,7 @@ def write_env(env, var, val):
|
||||
|
||||
def abstract_single_value(value):
|
||||
if isinstance(value, jnp.ndarray):
|
||||
value = jax.ShapedArray(np.shape(value), np.result_type(value))
|
||||
value = jax_core.ShapedArray(np.shape(value), np.result_type(value))
|
||||
return pe.PartialVal.unknown(value)
|
||||
else:
|
||||
return value
|
||||
|
||||
Reference in New Issue
Block a user