Unverified Commit 8a62d542 authored by Nicolas Hug's avatar Nicolas Hug Committed by GitHub
Browse files

Set seed of test_randomperspective_fill (#4759)

* setting 100 seeds, let's see if it fails

* Passed with 100, so setting 10
parent 313d5221
...@@ -1852,8 +1852,10 @@ def test_randomperspective(): ...@@ -1852,8 +1852,10 @@ def test_randomperspective():
) )
@pytest.mark.parametrize("seed", range(10))
@pytest.mark.parametrize("mode", ["L", "RGB", "F"]) @pytest.mark.parametrize("mode", ["L", "RGB", "F"])
def test_randomperspective_fill(mode): def test_randomperspective_fill(mode, seed):
torch.random.manual_seed(seed)
# assert fill being either a Sequence or a Number # assert fill being either a Sequence or a Number
with pytest.raises(TypeError): with pytest.raises(TypeError):
......
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