■ Change #268 · wiki.edited
PyTorch: Normalize Markdown to canonical form
body
## What it isA 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 questionsSee below.
hash 659e90bdf8f8894a5273e0eba7b280e028e58e70e109b4fd3471361899360f67
previous 29a983e95ea109ea3da3998dc7ebc9b584791c19e38392679a3896c0f5ade44c