Skip to content

Commit

Permalink
Removed named_shape= from jax.core.ShapedArray and `jax.ShapeDtyp…
Browse files Browse the repository at this point in the history
…eStruct`

It is unused and was only kept around to avoid breaking internal users.

PiperOrigin-RevId: 673411837
  • Loading branch information
superbobry authored and Penzai Developers committed Sep 11, 2024
1 parent e78349f commit d07f5cb
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tests/deprecated/v1/toolshed/sharding_util_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,6 @@ def test_name_to_name_sharding(self):
data_array=jax.ShapeDtypeStruct(
shape=(4, 8, 6),
dtype=np.dtype('float32'),
named_shape={},
sharding=jax.sharding.NamedSharding(
explicit_mesh, P('mesh_axis_1', 'mesh_axis_0', None)
),
Expand All @@ -211,7 +210,6 @@ def test_name_to_name_sharding(self):
data_array=jax.ShapeDtypeStruct(
shape=(8,),
dtype=np.dtype('float32'),
named_shape={},
sharding=jax.sharding.NamedSharding(
explicit_mesh, P('mesh_axis_1')
),
Expand All @@ -222,7 +220,6 @@ def test_name_to_name_sharding(self):
data_array=jax.ShapeDtypeStruct(
shape=(8, 12),
dtype=np.dtype('float32'),
named_shape={},
sharding=jax.sharding.NamedSharding(
explicit_mesh, P('mesh_axis_0', None)
),
Expand Down Expand Up @@ -251,7 +248,6 @@ def test_name_to_name_sharding(self):
data_array=jax.ShapeDtypeStruct(
shape=(4, 8, 6),
dtype=np.dtype('float32'),
named_shape={},
sharding=jax.sharding.NamedSharding(
explicit_mesh, P('mesh_axis_1', 'mesh_axis_0', None)
),
Expand All @@ -264,7 +260,6 @@ def test_name_to_name_sharding(self):
data_array=jax.ShapeDtypeStruct(
shape=(8,),
dtype=np.dtype('float32'),
named_shape={},
sharding=jax.sharding.NamedSharding(
explicit_mesh, P('mesh_axis_1')
),
Expand All @@ -277,7 +272,6 @@ def test_name_to_name_sharding(self):
data_array=jax.ShapeDtypeStruct(
shape=(8, 12),
dtype=np.dtype('float32'),
named_shape={},
sharding=jax.sharding.NamedSharding(
explicit_mesh, P('mesh_axis_0', None)
),
Expand Down

0 comments on commit d07f5cb

Please sign in to comment.