Assuming the you have python3 and pip installed on ubuntu.

Run the command

pip3 install torch

Once you have installed you can verify by running the following code

import torch

x = torch.rand(5, 3)

print(x)

k8scale.io

Simplifying writing cloud connected Apps.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store