Snapshotmain · 8f988c9
How tensors reach device operators, record gradients, compile graphs, and synchronize distributed training.
Click a building or route
System map8 components · 9 connections
130%
Connections
BuildingsEntryServiceComputeStorageRuntimeToolingExternal
Terms, in plain English
Dispatch keyA tag derived from tensor state that selects layers such as Autograd and backends such as CPU or CUDA.
How to study this repo
- 1Inspect dispatcher choices
Choose one operator and use PyTorch dispatch inspection tools, then connect its key order to Dispatcher.cpp and its ATen kernel.
- 2Draw a backward graph
Print grad_fn and next_functions for a tiny expression, then map those nodes to function.h and engine.cpp.
- 3Explain one compiled graph
Use torch.compile diagnostics on a small function and identify its Dynamo guards, FX operations, Inductor output, and graph breaks.