pytorch
8e2e648f - Propagate sources in VariableBuilder and add SuperSource (#91729)

Commit
2 years ago
Propagate sources in VariableBuilder and add SuperSource (#91729) **Motivation** When adding support for default args (#90575), a lot of VariableTrackers missing sources were encountered. Currently, in a lot of cases it seems OK to skip the source for VariableTrackers created (especially during inlining), but that assumption breaks down when inlining functions with default arguments. **Summary** of changes - propagate the self.source of the VariableBuilder to the new variables being built, which seems like it was an omission previously - Add SuperSource to track usages of super(), so that SuperVariables can support function calls with default args Pull Request resolved: https://github.com/pytorch/pytorch/pull/91729 Approved by: https://github.com/ezyang
Author
Committer
Parents
Loading