PyTorch Developer Podcast
PyTorch Developer Podcast
Edward Yang, Team PyTorch
Default arguments
14 minutes Posted Jun 25, 2021 at 1:00 pm.
0:00
14:57
Download MP3
Show notes

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