pytorch
88ff651e - torch.jit.ignore as a context manager (#55172)

Commit
4 years ago
torch.jit.ignore as a context manager (#55172) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/55172 Description: This is part 1 of series of PRs for supporting torch.jit.ignore as context manager. Following features are implemented in this PR: - Unique name for the registered function under torch.jit.frontend module. The unique name is generated based on the file name and line number of context manager - Forcing user to explicitly annotate the input and outputs. - No side effects are considered. Test Plan: Imported from OSS Reviewed By: gmagogsfm Differential Revision: D27895283 Pulled By: tugsbayasgalan fbshipit-source-id: 5d36d9aa5d457055a6bb1676f264647a745ec36a
Parents
Loading