Add external callbacks into RecordFunction (#17844)
authorIlia Cherniavskii <iliacher@fb.com>
Fri, 29 Mar 2019 00:42:47 +0000 (17:42 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 29 Mar 2019 00:48:45 +0000 (17:48 -0700)
commit600eeecbf4556e733b1ab22570bbb2700a420fdb
treeb56f555c6ab5148287f28bee0dab527a96350a92
parent11ac0cf276d804ec0b1eb07bcb10eaa988282bcf
Add external callbacks into RecordFunction (#17844)

Summary:
Add a way to insert external callbacks into PT's RecordFunction
Pull Request resolved: https://github.com/pytorch/pytorch/pull/17844

Differential Revision: D14399664

Pulled By: ilia-cher

fbshipit-source-id: 76654799811fefd3ffed4abfb46ed95b492cebab
test/cpp/jit/test.cpp
test/cpp/jit/test_misc.h
tools/build_variables.py
torch/CMakeLists.txt
torch/csrc/autograd/profiler.cpp
torch/csrc/autograd/profiler.h
torch/csrc/autograd/record_function.cpp [new file with mode: 0644]
torch/csrc/autograd/record_function.h [new file with mode: 0644]