Skip to content
DARC
■ Change #413 · wiki.edited

PyTorch: Normalize Markdown to canonical form

by DARC wiki2026-10-25 01:02:46 UTCOpen the page →
body
## What it is
A Python-first tensor library with GPU acceleration and **define-by-run** reverse-mode autodiff: the computation graph is built as your code executes, so ordinary Python control flow just works.
## Core pieces to understand
− | Layer | Role |
− |---|---|
− | `torch.Tensor` | Strided n-d arrays with device + dtype |
− | Autograd | Dynamic tape; each op registers its backward |
− | Dispatcher | Routes each op to the right kernel (CPU, CUDA, …) |
− | `torch.compile` | Captures graphs and generates fused kernels |
+ | Layer | Role |
+ | --------------- | ------------------------------------------------- |
+ | `torch.Tensor` | Strided n-d arrays with device + dtype |
+ | Autograd | Dynamic tape; each op registers its backward |
+ | Dispatcher | Routes each op to the right kernel (CPU, CUDA, …) |
+ | `torch.compile` | Captures graphs and generates fused kernels |
## Why digest it
− When millions of applications sit on top of one library, its numerical semantics, defaults, and failure modes become *de facto* science. Knowing where it silently up-casts, or what makes an op nondeterministic, matters.
+ When millions of applications sit on top of one library, its numerical semantics, defaults, and failure modes become _de facto_ science. Knowing where it silently up-casts, or what makes an op nondeterministic, matters.
## Open questions
See below.
hash b1fbae68c19c5fd29d0ff705204c2ddbb955744983057bcc8112f0a8cb66976e
previous 215002d1abf2a5e811952cfdfb7e93b11eb2539141ad3e40d3caaa03a91d76ba