Skip to content

Commit

Permalink
use cpu for backends when not testing on gpu (#18661)
Browse files Browse the repository at this point in the history
  • Loading branch information
haifeng-jin authored Oct 23, 2023
1 parent 2ad8e07 commit 742a2d0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion requirements-jax-cuda.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Tensorflow cpu-only version (needed for testing).
tf-nightly==2.15.0.dev20231009 # Pin a working nightly until rc0.
tf-nightly-cpu==2.15.0.dev20231009 # Pin a working nightly until rc0.

# Torch cpu-only version (needed for testing).
--extra-index-url https://download.pytorch.org/whl/cpu
Expand Down
2 changes: 1 addition & 1 deletion requirements-torch-cuda.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Tensorflow cpu-only version (needed for testing).
tf-nightly==2.15.0.dev20231009 # Pin a working nightly until rc0.
tf-nightly-cpu==2.15.0.dev20231009 # Pin a working nightly until rc0.

# Torch with cuda support.
--extra-index-url https://download.pytorch.org/whl/cu118
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Tensorflow.
tf-nightly==2.15.0.dev20231009 # Pin a working nightly until rc0.
tf-nightly-cpu==2.15.0.dev20231009 # Pin a working nightly until rc0.

# Torch.
--extra-index-url https://download.pytorch.org/whl/cpu
torch>=2.1.0
torchvision>=0.16.0

Expand Down

0 comments on commit 742a2d0

Please sign in to comment.