Skip to content

Commit

Permalink
update ut
Browse files Browse the repository at this point in the history
  • Loading branch information
FeixLiu committed Jan 9, 2024
1 parent 31d27df commit 610d5ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/auto_parallel/semi_auto_parallel_for_reshape.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ def test_reshape_infer_shape(self):
mesh = dist.ProcessMesh([0, 1], dim_names=["x"])
x = paddle.ones([10, 20, 30])
x = dist.shard_tensor(x, mesh, [Shard(0)])
x.reshape([0, -1, x.shape[-1]])
y = x.reshape([-1, 0, x.shape[0]])
assert y.shape == [30, 20, 10]
assert y._local_shape == [15, 20, 10]

def run_test_case(self):
if self._backend == "cpu":
Expand Down

0 comments on commit 610d5ad

Please sign in to comment.