Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
POI-WX committed Dec 6, 2023
1 parent 4a2ae4f commit 09676c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dipu/tests/python/unittests/test_minimum_maximum.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def test_maximum_scalar(self):
# scalar on cpu
r_dipu1 = torch.maximum(a.to(self.dipu), b)
# scalar on device
r_dipu2 = torch.maximum(a.to(self.dipu), b)
r_dipu2 = torch.maximum(a.to(self.dipu), b.to(self.dipu))
r_cpu = torch.maximum(a, b)
self.assertEqual(r_dipu1.to(self.cpu), r_cpu)
self.assertEqual(r_dipu2.to(self.cpu), r_cpu)
Expand Down

0 comments on commit 09676c9

Please sign in to comment.