Commit 3c106aa4 authored by panning's avatar panning
Browse files

pytest "set_deterministic"

parent 6b4739b5
...@@ -1087,7 +1087,9 @@ def test_autocontrast(device, dtype): ...@@ -1087,7 +1087,9 @@ def test_autocontrast(device, dtype):
@pytest.mark.parametrize('device', cpu_and_gpu()) @pytest.mark.parametrize('device', cpu_and_gpu())
def test_equalize(device): def test_equalize(device):
torch.set_deterministic(False) #pan
#torch.set_deterministic(False)
torch.use_deterministic_algorithms(False)
check_functional_vs_PIL_vs_scripted( check_functional_vs_PIL_vs_scripted(
F.equalize, F.equalize,
F_pil.equalize, F_pil.equalize,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment