-
i think it would be good to warning if a user passed into a string into maps.Mesh mesh = maps.Mesh(devices, ("dp")) # forgot the comma
print(mesh.axis_names) results in
due to the tuple function at https://github.com/google/jax/blob/main/jax/interpreters/pxla.py#L2324 I can see it as a very common mistake that users run into and spend 15 mins debugging (i fell victim to forgetting a comma) Proper Code without mistake mesh = maps.Mesh(devices, ("dp",))
print(mesh.axis_names) results in
|
Beta Was this translation helpful? Give feedback.
Answered by
sharadmv
Nov 11, 2022
Replies: 1 comment
-
I think we can just convert a string input to a singleton tuple (see #13213) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
OrenLeung
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think we can just convert a string input to a singleton tuple (see #13213)