[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
committed by
Michel Aractingi
parent
2abbd60a0d
commit
0ea27704f6
@@ -118,9 +118,5 @@ def test_seeded_context(fixed_seed):
|
||||
seeded_val2 = (random.random(), np.random.rand(), torch.rand(1).item())
|
||||
|
||||
assert seeded_val1 == seeded_val2
|
||||
assert all(
|
||||
a != b for a, b in zip(val1, seeded_val1, strict=True)
|
||||
) # changed inside the context
|
||||
assert all(
|
||||
a != b for a, b in zip(val2, seeded_val2, strict=True)
|
||||
) # changed again after exiting
|
||||
assert all(a != b for a, b in zip(val1, seeded_val1, strict=True)) # changed inside the context
|
||||
assert all(a != b for a, b in zip(val2, seeded_val2, strict=True)) # changed again after exiting
|
||||
|
||||
Reference in New Issue
Block a user