Skip to content
Prev Previous commit
Next Next commit
fix
  • Loading branch information
co63oc committed Nov 13, 2025
commit 8e5e6ac32a607c65a5087bc1fdf0a0aa7123eb1c
2 changes: 1 addition & 1 deletion test/legacy_test/test_unique.py
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ def test_static(self):

def test_dygraph_sorted(self):
paddle.disable_static()
out = paddle.unique(paddle.to_tensor(self.x_np))
out = paddle.unique(paddle.to_tensor(self.x_np), sorted=True)
expected_out = np.unique(self.x_np)
np.testing.assert_allclose(out.numpy(), expected_out)

Expand Down
Loading