pytorch
986ad3bf - [2/N] Dynamo supports skip by function & removes skipfiles circular import (#110835)

Commit
1 year ago
[2/N] Dynamo supports skip by function & removes skipfiles circular import (#110835) Several improvements for skipfiles: * Add ```FUNC_INLINELIST``` to support function level skip/inline check. * Use ```fn.__code__``` to match function since we can't get the function object sometimes. * Use python module string name for ```FILE_INLINELIST``` and ```SUBMODULE_INLINELIST```. * Use filename to match file and python module, which can fundamentally resolved the circular import issues introduced by skipfiles. * Use ```TYPE_CHECKING``` to ensure the python module string name is correct. * Add unit tests. Pull Request resolved: https://github.com/pytorch/pytorch/pull/110835 Approved by: https://github.com/ezyang
Author
Committer
Parents
Loading