Skip to content

Commit

Permalink
Merge pull request #25538 from jakevdp:raise-runtimeerror
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 707200618
  • Loading branch information
Google-ML-Automation committed Dec 17, 2024
2 parents 0fa5419 + 2518c62 commit 4aebe55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jax/_src/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1669,7 +1669,7 @@ def get_sharding(sharding, ndim):

context_mesh = mesh_lib.get_abstract_mesh()
if not context_mesh:
return RuntimeError("Please set the mesh via `jax.set_mesh` API.")
raise RuntimeError("Please set the mesh via `jax.set_mesh` API.")
assert sharding is None
return NamedSharding(context_mesh, P(*[None] * ndim))

Expand Down

0 comments on commit 4aebe55

Please sign in to comment.