We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9adab4f commit 35dbb90Copy full SHA for 35dbb90
.github/workflows/CI.yml
@@ -77,7 +77,7 @@ jobs:
77
pip -vv install .
78
fi
79
env:
80
- WITH_CUDA: 0
+ WITH_CUDA: "0"
81
82
- name: Lint with flake8
83
run: |
@@ -89,7 +89,7 @@ jobs:
89
- name: Run tests
90
run: pytest -v -s --durations=10
91
92
93
SKIP_TORCH_COMPILE: ${{ runner.os == 'Windows' && 'true' || 'false' }}
94
OMP_PREFIX: ${{ runner.os == 'macOS' && '/Users/runner/miniconda3/envs/test' || '' }}
95
CPU_TRAIN: ${{ runner.os == 'macOS' && 'true' || 'false' }}
setup.py
@@ -27,7 +27,7 @@
27
version = "0"
28
29
# If WITH_CUDA is defined
30
-if os.environ.get("WITH_CUDA", 0) == 1:
+if os.environ.get("WITH_CUDA", "0") == "1":
31
use_cuda = True
32
else:
33
use_cuda = torch.cuda._is_compiled()
0 commit comments