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