Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderDokuchaev committed Mar 1, 2024
1 parent 32633bb commit 58d4603
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tests/torch/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,6 @@ def _seed():
deterministic = cudnn.deterministic
benchmark = cudnn.benchmark
seed = torch.seed()
np_state = np.random.get_state()

cudnn.deterministic = True
cudnn.benchmark = False
Expand All @@ -276,7 +275,6 @@ def _seed():
cudnn.deterministic = deterministic
cudnn.benchmark = benchmark
torch.manual_seed(seed)
np.random.seed(np_state)


@pytest.fixture
Expand Down

0 comments on commit 58d4603

Please sign in to comment.