Podcast Lookup

Default arguments

PyTorch Developer Podcast

  • June 25, 2021
  • 15 min
  • Episode 38
Episode page

About this episode

What do default arguments have to do with PyTorch design? Why are default arguments great for clients (call sites) but not for servers (implementation sites)? In what sense are default arguments a canonicalization to max arity? What problems does this canonicalization cause? Can you canonicalize to minimum arity? What are some lessons to take?

Further reading. https://github.com/pytorch/pytorch/issues/54613 stop serializing default arguments