Remove dependency on ResourceGuard from IR.h. (#16351)
authorMikhail Zolotukhin <mvz@fb.com>
Tue, 29 Jan 2019 08:15:17 +0000 (00:15 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 29 Jan 2019 08:21:32 +0000 (00:21 -0800)
commit0e6123fb8af16e173f7c7e86e0d3e7f2a635b6d0
tree097a13adffdc6ea11132df9b6caf79b4486676b6
parent862d466bef4cdbeb29afd4a622fa7ddd432b0976
Remove dependency on ResourceGuard from IR.h. (#16351)

Summary:
It looks like `WithInsertionPoint` and `WithCurrentScope` can be easily implemented without
`ResourceGuard` - that helps readability and removes one more dependency. Is there anything I'm missing?
Pull Request resolved: https://github.com/pytorch/pytorch/pull/16351

Differential Revision: D13821826

Pulled By: ZolotukhinM

fbshipit-source-id: b203200b345fb5508a97dc8656e6f51cde4cc21f
torch/csrc/jit/graph_executor.cpp
torch/csrc/jit/ir.h