Skip to content

Commit

Permalink
Show PyTorch version in pytest report header
Browse files Browse the repository at this point in the history
  • Loading branch information
sublee committed May 29, 2019
1 parent 634174d commit 2ebac75
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@
@pytest.fixture(autouse=True)
def manual_seed_zero():
torch.manual_seed(0)


def pytest_report_header():
return 'torch: %s' % torch.__version__

0 comments on commit 2ebac75

Please sign in to comment.