mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 05:34:18 +08:00
Mostly in torch/csrc/jit/runtime and in `ATen/cuda/` Pull Request resolved: https://github.com/pytorch/pytorch/pull/110314 Approved by: https://github.com/seemethere
16 lines
308 B
C++
16 lines
308 B
C++
#pragma once
|
|
|
|
#include <torch/csrc/Export.h>
|
|
|
|
#include <string>
|
|
|
|
namespace torch::jit {
|
|
|
|
using PrintHandler = void (*)(const std::string&);
|
|
|
|
TORCH_API PrintHandler getDefaultPrintHandler();
|
|
TORCH_API PrintHandler getPrintHandler();
|
|
TORCH_API void setPrintHandler(PrintHandler ph);
|
|
|
|
} // namespace torch::jit
|