Skip to content

Commit

Permalink
rename the ut
Browse files Browse the repository at this point in the history
  • Loading branch information
FeixLiu committed Dec 2, 2022
1 parent d757501 commit 6e90070
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backends/mlu/tests/unittests/test_zero_dim_tensor_mlu.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ def test_gather_xD_axis_1(self):
for i in range(2):
self.assertEqual(out.numpy()[i], x.numpy()[i][1])

def test_scatter_0D(self):
def test_scatter_1D(self):
x = paddle.to_tensor([1.0, 3.0, 5.0, 7.0, 9.0])
index = paddle.full([], 2, 'int64')
updates = paddle.full([], 4.0)
Expand Down
2 changes: 1 addition & 1 deletion backends/npu/tests/unittests/test_zero_dim_tensor_npu.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ def test_gather_xD_axis_1(self):
for i in range(2):
self.assertEqual(out.numpy()[i], x.numpy()[i][1])

def test_scatter_0D(self):
def test_scatter_1D(self):
x = paddle.to_tensor([1.0, 3.0, 5.0, 7.0, 9.0])
index = paddle.full([], 2, 'int64')
updates = paddle.full([], 4.0)
Expand Down

0 comments on commit 6e90070

Please sign in to comment.