pytorch
756bdcbc - Include recursive class compilations in error call stack (#23454)

Commit
5 years ago
Include recursive class compilations in error call stack (#23454) Summary: Previously these were left out which would lead to confusing messages, now it looks something like: ``` torch.jit.frontend.UnsupportedNodeError: import statements aren't supported : at ../test.py:13:9 def bad_fn(self): import pdb ~~~~~~ <--- HERE '__torch__.X' is being compiled since it was called from 'fn' at ../test.py:16:12 def fn(x): return X(10) ~~~~ <--- HERE ``` Fixes #23453 Pull Request resolved: https://github.com/pytorch/pytorch/pull/23454 Pulled By: driazati Differential Revision: D16567930 fbshipit-source-id: 251b6f91f37a2816e06bb4c803f9bc172fa1d91b
Author
davidriazati
Parents
Loading