Learn practical skills, build real-world projects, and advance your career
!pip3 install jovian --upgrade --quiet
WARNING: You are using pip version 20.3.1; however, version 20.3.3 is available. You should consider upgrading via the '/opt/conda/bin/python3.7 -m pip install --upgrade pip' command.
import jovian
!pip install numpy torch==1.7.0+cpu torchvision==0.8.1+cpu torchaudio==0.7.0 -f https://download.pytorch.org/whl/torch_stable.html
Looking in links: https://download.pytorch.org/whl/torch_stable.html Requirement already satisfied: numpy in /opt/conda/lib/python3.7/site-packages (1.18.5) Collecting torch==1.7.0+cpu Downloading https://download.pytorch.org/whl/cpu/torch-1.7.0%2Bcpu-cp37-cp37m-linux_x86_64.whl (159.3 MB) |████████████████████████████████| 159.3 MB 3.2 kB/s eta 0:00:01 |██▋ | 12.9 MB 3.0 MB/s eta 0:00:49 |██████████████▎ | 71.0 MB 37.1 MB/s eta 0:00:03 |████████████████▏ | 80.7 MB 11.1 MB/s eta 0:00:08 |████████████████▉ | 83.9 MB 11.1 MB/s eta 0:00:07 |██████████████████████▊ | 113.1 MB 31.6 MB/s eta 0:00:02 Requirement already satisfied: numpy in /opt/conda/lib/python3.7/site-packages (1.18.5) Requirement already satisfied: future in /opt/conda/lib/python3.7/site-packages (from torch==1.7.0+cpu) (0.18.2) Requirement already satisfied: dataclasses in /opt/conda/lib/python3.7/site-packages (from torch==1.7.0+cpu) (0.6) Requirement already satisfied: typing-extensions in /opt/conda/lib/python3.7/site-packages (from torch==1.7.0+cpu) (3.7.4.1) Collecting torchaudio==0.7.0 Downloading torchaudio-0.7.0-cp37-cp37m-manylinux1_x86_64.whl (7.6 MB) |████████████████████████████████| 7.6 MB 4.3 MB/s eta 0:00:01 Collecting torchvision==0.8.1+cpu Downloading https://download.pytorch.org/whl/cpu/torchvision-0.8.1%2Bcpu-cp37-cp37m-linux_x86_64.whl (11.8 MB) |████████████████████████████████| 11.8 MB 33.6 MB/s eta 0:00:01 Requirement already satisfied: pillow>=4.1.1 in /opt/conda/lib/python3.7/site-packages (from torchvision==0.8.1+cpu) (8.0.1) Requirement already satisfied: numpy in /opt/conda/lib/python3.7/site-packages (1.18.5) Installing collected packages: torch, torchvision, torchaudio Attempting uninstall: torch Found existing installation: torch 1.7.0 Uninstalling torch-1.7.0: Successfully uninstalled torch-1.7.0 Attempting uninstall: torchvision Found existing installation: torchvision 0.8.1 Uninstalling torchvision-0.8.1: Successfully uninstalled torchvision-0.8.1 Attempting uninstall: torchaudio Found existing installation: torchaudio 0.7.0a0+ac17b64 Uninstalling torchaudio-0.7.0a0+ac17b64: Successfully uninstalled torchaudio-0.7.0a0+ac17b64 Successfully installed torch-1.7.0+cpu torchaudio-0.7.0 torchvision-0.8.1+cpu WARNING: You are using pip version 20.3.1; however, version 20.3.3 is available. You should consider upgrading via the '/opt/conda/bin/python3.7 -m pip install --upgrade pip' command.
import torch

Tensor generally is a n dimensional array