~/talk

PyTorch 2.0: Dynamic Shapes Support

name:Horace He
links:none on file
slides:none on file

PyTorch 2.0 adds a symbolic shapes system that lets compiled graphs accept varying tensor sizes by propagating symbolic dimensions (implemented with sympy), adding runtime guards and control-flow ops, and integrating into the JIT/export path and torchinductor. Benchmarks on variable-length language-model generation show smoother latency than eager and padded static builds, higher throughput, and drop compilation repetitions from about five or six to a single compile. The system is implemented end-to-end and yields measurable performance and compile-time gains.

AI-written summary · about

  1. 0:00Introduction
  2. 0:57Execution Flow
  3. 2:33Symbolic Shapes
  4. 3:46Metadata
  5. 4:36Control Flow
  6. 5:10Specialization
  7. 9:58Conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.