Skip to content

Commit

Permalink
Fix the mesh_axes of benchmarks to be Pspecs
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 437932954
  • Loading branch information
yashk2810 authored and jax authors committed Mar 29, 2022
1 parent d69c7b3 commit a68b0f3
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions benchmarks/gda_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,20 @@
import jax
from jax._src import test_util as jtu
from jax._src.util import prod
from jax.interpreters.sharded_jit import PartitionSpec as P
from jax.experimental import global_device_array as gda
import numpy as np

mesh_shapes_axes = [
((256, 8), ["x", "y"]),
((256, 8), [None]),
((256, 8), ["x"]),
((256, 8), ["y"]),
((256, 8), [("x", "y")]),
((128, 8), ["x", "y"]),
((4, 2), ["x", "y"]),
((16, 4), ["x", "y"]),
((16, 4), [("x", "y")]),
((256, 8), P("x", "y")),
((256, 8), P(None)),
((256, 8), P("x")),
((256, 8), P("y")),
((256, 8), P(("x", "y"))),
((128, 8), P("x", "y")),
((4, 2), P("x", "y")),
((16, 4), P("x", "y")),
((16, 4), P(("x", "y"))),
]


Expand Down

0 comments on commit a68b0f3

Please sign in to comment.