Check if profiler is disabled in push/pop event (#18908)
authorIlia Cherniavskii <iliacher@fb.com>
Sun, 7 Apr 2019 22:03:21 +0000 (15:03 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Sun, 7 Apr 2019 22:06:04 +0000 (15:06 -0700)
commit6c91610f0c86153232bf3a66f3a23e42b96e79b6
treeda65c31334c299d2e64ea82a4fa90fdf0baed3d4
parent08ee4e560763cce04aeca310ac9a0e3ba4be6f79
Check if profiler is disabled in push/pop event (#18908)

Summary:
Make sure to check if profiler is disabled in push/pop and mark event
functions
Pull Request resolved: https://github.com/pytorch/pytorch/pull/18908

Differential Revision: D14791931

Pulled By: ilia-cher

fbshipit-source-id: e4f5149e69999ee2b9238c21cccad6d27c6a714a
torch/csrc/autograd/profiler.cpp