~/talk

From NumPy to PyTorch, A Story of API Compatibility

Talkat PyCon US 2021 · 2021-05-14..05-15· [machine-learning, python]
speakerdeck:ranman
speakerdeck:mruberry
slides:none on file

PyTorch claims practical NumPy compatibility by implementing hundreds of NumPy operators plus hardware-accelerator and autograd support, but not all thousand plus functions. Porting requires C++ kernels, autograd formulas, and comprehensive tests, so PyTorch builds an opinfo test generation system and leans on community contributors. Where behavior diverges it is principled: e.g. reciprocal promotes ints to float, eig always returns complex tensors, and complex sorting raises an error to preserve consistent semantics and graph inference.

AI-written summary · about

  1. 0:00Start
  2. 0:31Outline
  3. 9:33PyTorch Behind the Scenes
  4. 12:39Porting an operator from Numpy
  5. 13:34PyTorch's test matrix
  6. 17:38Features of PyTorch's test generator
  7. 22:01Principled discrepancies
  8. 23:59Lessons Learned
~/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.