File tree 3 files changed +6
-7
lines changed
torchvision/prototype/datasets
3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 31
31
32
32
printf " Installing PyTorch with %s\n" " ${cudatoolkit} "
33
33
if [ " ${os} " == " MacOSX" ]; then
34
- conda install -y -c " pytorch-${UPLOAD_CHANNEL} " " pytorch-${UPLOAD_CHANNEL} " ::pytorch " ${cudatoolkit} " pytest
34
+ conda install -y -c " pytorch-${UPLOAD_CHANNEL} " " pytorch-${UPLOAD_CHANNEL} " ::pytorch " ${cudatoolkit} "
35
35
else
36
- conda install -y -c " pytorch-${UPLOAD_CHANNEL} " -c nvidia " pytorch-${UPLOAD_CHANNEL} " ::pytorch[build= " *${version} *" ] " ${cudatoolkit} " pytest
36
+ conda install -y -c " pytorch-${UPLOAD_CHANNEL} " -c nvidia " pytorch-${UPLOAD_CHANNEL} " ::pytorch[build= " *${version} *" ] " ${cudatoolkit} "
37
37
fi
38
38
39
39
printf " * Installing torchvision\n"
Original file line number Diff line number Diff line change 28
28
fi
29
29
30
30
printf " Installing PyTorch with %s\n" " ${cudatoolkit} "
31
- conda install -y -c " pytorch-${UPLOAD_CHANNEL} " -c nvidia " pytorch-${UPLOAD_CHANNEL} " ::pytorch[build= " *${version} *" ] " ${cudatoolkit} " pytest
31
+ conda install -y -c " pytorch-${UPLOAD_CHANNEL} " -c nvidia " pytorch-${UPLOAD_CHANNEL} " ::pytorch[build= " *${version} *" ] " ${cudatoolkit} "
32
32
33
33
torch_cuda=$( python -c " import torch; print(torch.cuda.is_available())" )
34
34
echo torch.cuda.is_available is $torch_cuda
Original file line number Diff line number Diff line change 1
1
try :
2
2
import torchdata
3
- except ( ModuleNotFoundError , TypeError ) as error :
3
+ except ModuleNotFoundError :
4
4
raise ModuleNotFoundError (
5
5
"`torchvision.prototype.datasets` depends on PyTorch's `torchdata` (https://github.com/pytorch/data). "
6
- "You can install it with `pip install git+https://github.com/pytorch/data.git`. "
7
- "Note that you cannot install it with `pip install torchdata`, since this is another package."
8
- ) from error
6
+ "You can install it with `pip install --pre torchdata --extra-index-url https://download.pytorch.org/whl/nightly/cpu"
7
+ ) from None
9
8
10
9
from . import utils
11
10
from ._home import home
You can’t perform that action at this time.
0 commit comments