网页 综合 更新时间 2026-11-13 16:48:04

Learn the Basics — PyTorch Tutorials 2.15.0+cu132 documentation

自动蜘蛛 pytorch.org 正文约 3018 字
Learn the Basics — PyTorch Tutorials 2.15.0+cu132 documentation
Getting Started with PyTorch
Go to the end to download the full example code.
Learn the Basics || Quickstart || Tensors || Datasets & DataLoaders || Transforms || Build Model || Autograd || Optimization || Save & Load Model
Created On: Feb 09, 2021 | Last Updated: Jan 20, 2026 | Last Verified: Nov 05, 2024
Authors: Suraj Subramanian, Seth Juarez, Cassie Breviu, Dmitry Soshnikov, Ari Bornstein
Most machine learning workflows involve working with data, creating models, optimizing model parameters, and saving the trained models. This tutorial introduces you to a complete ML workflow implemented in PyTorch, with links to learn more about each of these concepts.
We’ll use the FashionMNIST dataset to train a neural network that predicts if an input image belongs to one of the following classes: T-shirt/top, Trouser, Pullover, Dress, Coat, Sandal, Shirt, Sneaker, Bag, or Ankle boot.
This tutorial assumes a basic familiarity with Python and Deep Learning concepts.
You can run this tutorial in a couple of ways:
In the cloud: This is the easiest way to get started! Each section has a “Run in Google Colab” link at the top, which opens an integrated notebook in Google Colab with the code in a fully-hosted environment.
Locally: This option requires you to set up PyTorch and TorchVision first on your local machine (installation instructions). Download the notebook or copy the code into your favorite IDE.
If you’re familiar with other deep learning frameworks, check out the 0. Quickstart first to quickly familiarize yourself with PyTorch’s API.
If you’re new to deep learning frameworks, head right into the first section of our step-by-step guide: 1. Tensors.
Download Jupyter notebook: intro.ipynb
Download Python source code: intro.py
Download zipped: intro.zip
Built with the PyData Sphinx Theme 0.15.4.
Access comprehensive developer documentation for PyTorch
Get in-depth tutorials for beginners and advanced developers
Find development resources and get your questions answered
Stay in touch for updates, event info, and the latest news
By submitting this form, I consent to receive marketing emails from the LF and its projects regarding their events, training, research, developments, and related announcements. I understand that I can unsubscribe at any time using the links in the footers of the emails I receive. Privacy Policy.
© PyTorch. Copyright © The Linux Foundation®. All rights reserved. The Linux Foundation has registered trademarks and uses trademarks. For more information, including terms of use, privacy policy, and trademark usage, please see our Policies page. Trademark Usage. Privacy Policy.
To analyze traffic and optimize your experience, we serve cookies on this site. By clicking or navigating, you agree to allow our usage of cookies. As the current maintainers of this site, Facebook’s Cookies Policy applies. Learn more, including about available controls: Cookies Policy.
© Copyright 2024, PyTorch.
Created using Sphinx 7.2.6.
Built with the PyData Sphinx Theme 0.15.4.
访问原文 返回搜索 https://pytorch.org/tutorials/beginner/basics/intro.html
本页为82搜索生成的网页快照,内容来自站内索引;演示数据的原文链接仅作示例。