API design via lexical and dynamic scoping

PyTorch Developer Podcast - En podkast av Edward Yang, Team PyTorch

Kategorier:

Lexical and dynamic scoping are useful tools to reason about various API design choices in PyTorch, related to context managers, global flags, dynamic dispatch, and how to deal with BC-breaking changes. I'll walk through three case studies, one from Python itself (changing the meaning of division to true division), and two from PyTorch (device context managers, and torch function for factory functions).

Visit the podcast's native language site