Skip to main content

One post tagged with "torchvision"

torchvision, PyTorch's Library of Image Datasets, Pretrained Models and Image Transforms for Computer Vision

View All Tags

PyTorch Tutorial for Deep Learning in Python — Part 1: Install PyTorch and Create Your First Tensors on the GPU

· 38 min read
Jagdish Kumawat
Founder @ Dewiride

PyTorch is an open-source deep-learning library for Python: you build neural networks with it, and it does their maths on your computer's CPU or GPU. In this first part you install PyTorch 2.15 in a Python 3.15 project, create your first tensors, move them to the GPU and back, and give the project a command that picks the device every later part runs on.