TL;DR
PyTorch uses tensors to hold data, autograd to calculate gradients and a repeated training loop to update model weights. Google and Meta introduced TorchTPU on October 20, 2026, while TorchNeuron for AWS Trainium entered public beta; both developments aim to make PyTorch usable on more chips, though peak performance may still require code changes.
PyTorch is an open source Python library used to build and train neural networks. Its basic data structure is a tensor, a container for numbers that can represent inputs, model weights or results. Operations on tensors form the calculations a model uses to make a prediction.
Get business pricing on tech for your team
- Business-only prices and quantity discounts
- Tax-exempt purchasing
- Multiple users, one account, clear invoices
During training, autograd tracks those calculations. After a model’s prediction is compared with the expected answer, a loss function produces a measure of error. Calling loss.backward() computes gradients, which indicate how each weight contributed to the error. An optimizer then adjusts the weights; the gradients are cleared before the next batch of examples.
That cycle is the training loop: make a prediction, calculate loss, compute gradients, update weights and reset gradients. PyTorch’s eager execution runs operations as Python reaches them and constructs the calculation graph during execution. The source summarizes the design with the documentation phrase, “what you run is what you differentiate.” Its explainer’s code examples were written and tested with PyTorch 2.12; it reports that PyTorch 2.15 was released October 28, 2026.

PyTorch’s Reach Across Chips
The framework sits between a team’s model code and the hardware that runs it. Support for Google TPUs and AWS Trainium could give organizations more options when selecting accelerators, and may reduce the amount of work needed to move existing PyTorch projects. That matters because teams have already built workflows and skills around their chosen framework.
Hardware support does not by itself guarantee that a model will run at its best on every chip. The source says TorchTPU’s authors caution that reaching peak performance can still require changes. The announcements point to wider compatibility, while the cost and effort of switching remain dependent on the model and hardware.
Products Worth Considering

Samsung Galaxy Tab S11 128GB Wi-Fi Android Tablet with S Pen, Silver

Logitech MX Master 4 Ergonomic Wireless Mouse with Haptic Feedback, Graphite

Bose Lifestyle Ultra Wireless Home Speaker, White Smoke
As an affiliate, we earn on qualifying purchases.
How PyTorch Became a Standard Tool
PyTorch began in 2016, with its first public release in January 2017, according to the 2019 research paper cited by the source. That paper described a design in which Python programs control the library’s behavior. The source says much of the underlying system is written in C++ for performance, including its tensor, CPU and GPU operations, and automatic differentiation components.
Since September 12, 2022, the PyTorch Foundation, a project of the Linux Foundation, has stewarded the project. PyTorch is one of several open source machine learning frameworks. The source describes PyTorch as eager by default with optional compilation, JAX as centered on composable function transformations, and TensorFlow 2 as eager by default with graph export through tf.function. These are differences in approach, not a ranking.
The article is part three of a six-part explainer series about AI. Its focus here is the software layer used to build and train many models, rather than a new model or a reported change in training results.
Limits of Cross Chip Support
The source does not provide independent performance comparisons for TorchTPU or TorchNeuron, or quantify how much work typical projects will need to run on the new backends. TorchNeuron’s public beta status means its availability and capabilities may continue to change. It is also unclear from the material how broadly either backend will support models and PyTorch features.
The source reports the stated goal for TorchTPU as making a TPU port require no more than changing a device name in one line of code. It also says the authors caution that peak performance can require changes. The goal should not be read as a guarantee that every model can be moved with a one-line edit.
What Backend Testing Will Show
The next evidence will come from developers testing the backends on real workloads: whether existing models run correctly, how much code adaptation is needed, and what performance they achieve. TorchNeuron is in public beta, so its development and reported compatibility remain in progress. The source does not give a schedule for further releases or benchmarks.
For teams evaluating a move, the relevant next step is to compare their own models and workloads across the supported hardware, including the engineering changes required to reach their performance targets. The October announcements establish an effort to broaden PyTorch’s chip support; they do not yet settle how easy or cost effective switching will be in practice.
Key Questions
What is PyTorch used for?
PyTorch is an open source Python library for building and training neural networks. It provides tensor operations, automatic differentiation and tools for running training loops.
What does autograd do?
Autograd tracks tensor calculations and computes gradients during backpropagation. Those gradients help an optimizer adjust a model’s weights to reduce its loss.
What were TorchTPU and TorchNeuron announced to do?
Google and Meta presented TorchTPU for running PyTorch on Google TPUs. TorchNeuron, a PyTorch backend for AWS Trainium, entered public beta on October 20, 2026.
Does PyTorch support mean a model can move between chips unchanged?
Not necessarily. The source describes easier portability as a goal, but says TorchTPU’s authors note that code changes may still be needed for peak performance.
Source: Thorsten Meyer AI
