Unverified Commit 5ffba76f authored by Vasilis Vryniotis's avatar Vasilis Vryniotis Committed by GitHub
Browse files

Setting seeds for frozen BN. (#4761)

parent 8a62d542
......@@ -845,7 +845,9 @@ class TestFrozenBNT:
expected_string = f"FrozenBatchNorm2d({num_features}, eps={eps})"
assert repr(t) == expected_string
def test_frozenbatchnorm2d_eps(self):
@pytest.mark.parametrize("seed", range(10))
def test_frozenbatchnorm2d_eps(self, seed):
torch.random.manual_seed(seed)
sample_size = (4, 32, 28, 28)
x = torch.rand(sample_size)
state_dict = dict(
......
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