awesome-repositories.com
博客
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
jcjohnson avatar

jcjohnson/pytorch-examples

0
View on GitHub↗
4,872 星标·917 分支·Python·mit·3 次浏览

Pytorch Examples

This repository provides a curated collection of self-contained Python code examples that demonstrate the core capabilities of the PyTorch deep learning framework. The examples cover automatic differentiation, dynamic computational graphs, GPU‑accelerated tensor operations, and training of neural network models using gradient‑based optimization.

The code samples illustrate PyTorch’s dynamic graph construction, where models can change structure with native control flow, and its automatic gradient computation through reverse‑mode differentiation. Additional examples show how to work with tensors on both CPU and GPU, define custom neural network layers using the module system, and apply optimizers such as SGD, Adam, and RMSProp. The collection also includes tutorials on building computational graphs and training loops, making it a practical reference for learning PyTorch’s essential features.

Features

  • Learning Examples - Provides a curated collection of self-contained PyTorch code examples for learning.
  • Automatic Differentiation - Computes gradients automatically via computational graph and backpropagation.
  • Custom Neural Network Layers - Creates custom neural network layers with learnable parameters via subclassing.
  • Dynamic Graph Builders - Illustrates dynamic computational graphs built on-the-fly with native Python control flow.
  • Tensor Computing Libraries - Demonstrates performing tensor operations on GPUs for accelerated numerical computation.
  • Neural Network Layers - Shows how to construct neural networks using pre-built layers like dense and convolutional ones.
  • Neural Network Modules - Demonstrates creating custom neural network layers by subclassing PyTorch's Module class.
  • Neural Network Training - Trains neural networks by defining models, computing gradients, and applying optimizers.
  • Neural Network Optimizers - Provides examples of training neural networks with various optimizers including SGD, Adam, and RMSProp.
  • Reverse-Mode Differentiation - Implements reverse-mode automatic differentiation for computing gradients via backpropagation.
  • Stochastic Gradient Descent Optimizations - Applies stochastic gradient descent and Adam optimizers to minimize loss functions.
  • GPU-Accelerated Processing - Enables GPU-accelerated tensor operations via CUDA backend for parallel computation.
  • Neural Network Module Abstractions - Provides module-based abstractions for encapsulating neural network layers and parameters.
  • Eager Execution Modes - Demonstrates eager execution mode for immediate evaluation and debugging.
  • GPU Tensor Mapping - Demonstrates GPU tensor mapping and computation with code samples.
  • Custom Autograd Functions - Defines custom autograd functions with user-specified forward and backward operations.
  • Model Training Optimizers - Illustrates training loops with optimizers like SGD and Adam.
  • Tutorials - Listed in the “Tutorials” section of the The Incredible Pytorch awesome list.

Star 历史

jcjohnson/pytorch-examples 的 Star 历史图表jcjohnson/pytorch-examples 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

Pytorch Examples 的开源替代方案

相似的开源项目,按与 Pytorch Examples 的功能重合度排序。
  • d2l-ai/d2l-end2l-ai 的头像

    d2l-ai/d2l-en

    29,001在 GitHub 上查看↗

    This project is an educational platform and research toolkit designed to teach deep learning through a combination of mathematical theory, visual diagrams, and executable code. It provides a comprehensive environment for building, training, and evaluating neural networks, grounding complex concepts in interactive computational notebooks that allow for hands-on experimentation. The framework distinguishes itself by interleaving theoretical foundations—including linear algebra, calculus, and probability—with practical implementations across multiple industry-standard libraries. It supports flex

    Pythonbookcomputer-visiondata-science
    在 GitHub 上查看↗29,001
  • tingsongyu/pytorch_tutorialTingsongYu 的头像

    TingsongYu/PyTorch_Tutorial

    8,018在 GitHub 上查看↗

    This project is a comprehensive collection of educational examples and reference implementations for building vision and language models using PyTorch. It serves as a deep learning tutorial covering the end-to-end process of developing neural networks, from initial architecture definition to final production deployment. The repository provides detailed guides on implementing a wide range of domain-specific models, including convolutional neural networks for object detection and segmentation, as well as transformer and recurrent architectures for natural language processing. It emphasizes gene

    Python
    在 GitHub 上查看↗8,018
  • ml-explore/mlxml-explore 的头像

    ml-explore/mlx

    27,047在 GitHub 上查看↗

    This project is a machine learning array framework and tensor computation library designed for high-performance numerical computing. It provides a comprehensive suite of tools for constructing and training neural networks, featuring an automatic differentiation engine that facilitates gradient-based optimization and complex mathematical modeling. The library distinguishes itself through a unified memory architecture that allows data to be shared across CPU and GPU devices without explicit copies, significantly reducing data movement overhead. Its execution model relies on a lazy evaluation en

    C++mlx
    在 GitHub 上查看↗27,047
  • flashlight/flashlightflashlight 的头像

    flashlight/flashlight

    5,443在 GitHub 上查看↗

    Flashlight is a standalone C++ machine learning library and tensor library used for building and training neural networks. It functions as a comprehensive neural network framework and automatic differentiation engine, providing the tools to construct computation graphs and calculate gradients via backpropagation. The project serves as a distributed training framework, utilizing all-reduce operations to synchronize gradients and parameters across multiple compute nodes and devices. It distinguishes itself through deep integration of high-performance tensor manipulation, native device memory in

    C++
    在 GitHub 上查看↗5,443
查看 Pytorch Examples 的所有 30 个替代方案→

常见问题解答

jcjohnson/pytorch-examples 是做什么的?

This repository provides a curated collection of self-contained Python code examples that demonstrate the core capabilities of the PyTorch deep learning framework. The examples cover automatic differentiation, dynamic computational graphs, GPU‑accelerated tensor operations, and training of neural network models using gradient‑based optimization.

jcjohnson/pytorch-examples 的主要功能有哪些?

jcjohnson/pytorch-examples 的主要功能包括:Learning Examples, Automatic Differentiation, Custom Neural Network Layers, Dynamic Graph Builders, Tensor Computing Libraries, Neural Network Layers, Neural Network Modules, Neural Network Training。

jcjohnson/pytorch-examples 有哪些开源替代品?

jcjohnson/pytorch-examples 的开源替代品包括: d2l-ai/d2l-en — This project is an educational platform and research toolkit designed to teach deep learning through a combination of… tingsongyu/pytorch_tutorial — This project is a comprehensive collection of educational examples and reference implementations for building vision… ml-explore/mlx — This project is a machine learning array framework and tensor computation library designed for high-performance… flashlight/flashlight — Flashlight is a standalone C++ machine learning library and tensor library used for building and training neural… morvanzhou/pytorch-tutorial — This project is a collection of PyTorch learning resources and educational guides designed to teach the construction… morvanzhou/tensorflow-tutorial — This project is a collection of educational resources and reference implementations for neural network development…