File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
.circleci/unittest/windows_optdepts/scripts Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 3838git submodule sync && git submodule update --init --recursive
3939
4040printf " Installing PyTorch with %s\n" " ${cudatoolkit} "
41- conda install -y -c " pytorch-${UPLOAD_CHANNEL} " -c nvidia pytorch " ${cudatoolkit} "
41+ if $torch_cuda ; then
42+ pip3 install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu118
43+ else
44+ pip3 install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cpu
45+ fi
4246
4347torch_cuda=$( python -c " import torch; print(torch.cuda.is_available())" )
4448echo torch.cuda.is_available is $torch_cuda
Original file line number Diff line number Diff line change @@ -37,3 +37,6 @@ conda activate "${env_dir}"
3737# 3. Install Conda dependencies
3838printf " * Installing dependencies (except PyTorch)\n"
3939conda env update --file " ${this_dir} /environment.yml" --prune
40+
41+ # we don't use torchsnapshot
42+ conda env config vars set CKPT_BACKEND=torch
You can’t perform that action at this time.
0 commit comments