pytorch
fa68b18d - [jit] warn if _check_overload_body fails to find source

Commit
3 years ago
[jit] warn if _check_overload_body fails to find source Summary: Under certain conditions (particularly if a module is frozen, like with PyInstaller or torch::deploy), we will not have source code available for functions. `import torch` should still work in this case, but this check is currently causing it to raise an exception. Since this is an initial check (if an overload is actually exercised there will be hard failure), raise a warning and move on. Test Plan: unit tests Reviewed By: eellison Differential Revision: D30214271 fbshipit-source-id: eb021503e416268e8585e0708d6271c1e7b91e95
Author
suo suo
Committer
Parents
Loading