File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 77
77
pip -vv install .
78
78
fi
79
79
env :
80
- WITH_CUDA : 0
80
+ WITH_CUDA : " 0 "
81
81
82
82
- name : Lint with flake8
83
83
run : |
89
89
- name : Run tests
90
90
run : pytest -v -s --durations=10
91
91
env :
92
- WITH_CUDA : 0
92
+ WITH_CUDA : " 0 "
93
93
SKIP_TORCH_COMPILE : ${{ runner.os == 'Windows' && 'true' || 'false' }}
94
94
OMP_PREFIX : ${{ runner.os == 'macOS' && '/Users/runner/miniconda3/envs/test' || '' }}
95
95
CPU_TRAIN : ${{ runner.os == 'macOS' && 'true' || 'false' }}
Original file line number Diff line number Diff line change 27
27
version = "0"
28
28
29
29
# If WITH_CUDA is defined
30
- if os .environ .get ("WITH_CUDA" , 0 ) == 1 :
30
+ if os .environ .get ("WITH_CUDA" , "0" ) == "1" :
31
31
use_cuda = True
32
32
else :
33
33
use_cuda = torch .cuda ._is_compiled ()
You can’t perform that action at this time.
0 commit comments