■ Change #546 · 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 1fb76d81bcfcf11ecd704ebf7987801c6f1ca5e0f5221b965bbcbd496c4e274d
previous 01a3ee57fce3462ed6d2074d09ecf3e126fbbc748875a32a8baa773557a0d9f2