Thread local debug info
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/22365
Test Plan:
USE_CUDA=0 python setup.py develop
./build/bin/test_jit
Imported from OSS
Reviewed By: ajyu
Differential Revision: D16065129
Pulled By: ilia-cher
fbshipit-source-id: f300985459a83c2c1049ed8c4fefd23a3144047a