pytorch/torch/csrc/jit/python
Pritam Damania dc8a8cea79 Move caffe2 signal_handler to c10. (#56717)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/56717

The signal_handler was under the caffe2 namespacee but was being used
by PyTorch as well.

I've fixed this my moving it to the c10 namespace where now both C2 and PyTorch
can use it.

The signal_handler interface in caffe2/utils/signal_handler.h is kept the same
for backward compatiblity for C2, but most of the commmon code is moved to c10.
ghstack-source-id: 127446929

Test Plan: waitforbuildbot

Reviewed By: ezyang

Differential Revision: D27946738

fbshipit-source-id: d6228d1a0108f4c807d405e7a0bb799c5375388f
2021-04-26 23:08:12 -07:00
..
init.cpp Move caffe2 signal_handler to c10. (#56717) 2021-04-26 23:08:12 -07:00
init.h
module_python.h
pybind_utils.cpp Revert D27448156: irange for size_t 2021-04-03 19:14:00 -07:00
pybind_utils.h Fix ScriptMethod dispatch on __torch_function__ (#56103) 2021-04-15 08:46:43 -07:00
pybind.h Graceful invalidation of Python Node/Value/Block when C++ object is deleted (#50326) 2021-02-04 01:34:46 -08:00
python_arg_flatten.cpp Replace all direct cdata access with THPVariable_Unpack (#55799) 2021-04-15 08:57:04 -07:00
python_arg_flatten.h
python_custom_class.cpp [JIT] Add static method support for TorchBind (#51177) 2021-02-13 19:41:27 -08:00
python_custom_class.h
python_interpreter.cpp
python_ir.cpp [package] fix mangling issues with TorchScript (#54915) 2021-03-31 00:58:05 -07:00
python_ir.h
python_ivalue.h Support custom Python classes in CUDAFuture (#56516) 2021-04-24 07:06:28 -07:00
python_sugared_value.cpp Add cuda device synchronization support in JIT (#55469) 2021-04-14 09:13:07 -07:00
python_sugared_value.h [JIT] Enable ModuleList non-literal indexing (#53410) 2021-03-09 16:11:34 -08:00
python_tracer.cpp [Usability] Capture argument names for traced functions and modules (#51775) 2021-02-10 18:28:08 -08:00
python_tracer.h [Usability] Capture argument names for traced functions and modules (#51775) 2021-02-10 18:28:08 -08:00
python_tree_views.cpp [JIT] Put explicit error message on class attribute accesses. (#55723) 2021-04-16 15:47:10 -07:00
python_tree_views.h
script_init.cpp [ONNX] Fix assign input shape for tuple inputs & primitive type inputs (#54112) (#56164) 2021-04-20 23:00:37 -07:00
script_init.h
update_graph_executor_opt.cpp
update_graph_executor_opt.h