~/lightning

What's New in Torch.onnx

Lightningat PyTorch Conference 2025 · 2025-10-22..10-23· [machine-learning]
github:MaanavD
links:none on file
slides:none on file

New exporter path uses dynamo=True with torch.export/ExportedProgram to capture functional FX graphs, producing ONNX IR models that share tensors with the PyTorch state and serialize via onnx_program.save for memory-mapped inference. It supports dynamic shapes, control flow via torch.cond/torch.while, and native onnx attention operator (opset 23+) and rotary/arm norms. Tools include torch.onnx.verification for numeric diagnosis and torch.onnx.ops to inject custom ONNX ops when needed.

AI-written summary · about

  1. 0:00Introduction
  2. 0:42What is ONNX and Torch.onnx
  3. 1:47New ONNX exporter features
  4. 3:55Control flow in PyTorch 2
  5. 4:36Native ONNX operators
  6. 5:40Custom operator support
  7. 6:24Export return values and optimizations
  8. 7:50Validation tools
  9. 8:54Demo: Exporting Gemma 3
  10. 10:39ONNX export tips
~/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.