xref: /aosp_15_r20/external/pytorch/torch/csrc/jit/runtime/print_handler.h (revision da0073e96a02ea20f0ac840b70461e3646d07c45)
1 #pragma once
2 
3 #include <torch/csrc/Export.h>
4 
5 #include <string>
6 
7 namespace torch::jit {
8 
9 using PrintHandler = void (*)(const std::string&);
10 
11 TORCH_API PrintHandler getDefaultPrintHandler();
12 TORCH_API PrintHandler getPrintHandler();
13 TORCH_API void setPrintHandler(PrintHandler ph);
14 
15 } // namespace torch::jit
16