Skip to content

Commit

Permalink
Install torch cpu version for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mseitzer committed Mar 16, 2024
1 parent 88d0de4 commit 6211a10
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ def lint(session):

@nox.session(python=["3.8", "3.9", "3.10", "3.11", "3.12"])
def tests(session):
session.install(
'torch==2.2.1',
'torchvision',
'--index-url', 'https://download.pytorch.org/whl/cpu'
)
session.install('.')
session.install('pytest')
session.install('pytest-mock')
Expand Down

0 comments on commit 6211a10

Please sign in to comment.