Skip to content

Commit

Permalink
amend
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoens committed Oct 9, 2023
1 parent 8c0ee17 commit 8961a31
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .circleci/unittest/linux/scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,26 +27,26 @@ git submodule sync && git submodule update --init --recursive
printf "Installing PyTorch with %s\n" "${CU_VERSION}"
if [[ "$TORCH_VERSION" == "nightly" ]]; then
if [ "${CU_VERSION:-}" == cpu ] ; then
pip3 install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cpu
python3 -m pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cpu
else
pip3 install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/$CU_VERSION
python3 -m pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/$CU_VERSION
fi
elif [[ "$TORCH_VERSION" == "stable" ]]; then
if [ "${CU_VERSION:-}" == cpu ] ; then
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
python3 -m pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
else
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/$CU_VERSION
python3 -m pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/$CU_VERSION
fi
else
printf "Failed to install pytorch"
exit 1
fi

printf "* Installing tensordict\n"
python setup.py develop
python3 setup.py develop

# install torchsnapshot nightly
pip3 install git+https://github.com/pytorch/torchsnapshot --no-build-isolation
python3 -m pip install git+https://github.com/pytorch/torchsnapshot --no-build-isolation

# smoke test
python -c "import functorch;import torchsnapshot"

0 comments on commit 8961a31

Please sign in to comment.