Caffe2 - C++ API
A deep learning, cross platform ML framework
python_print.h
1 #pragma once
2 #include <torch/csrc/WindowsTorchApiMacro.h>
3 #include <torch/csrc/jit/ir.h>
4 #include <iostream>
5 #include <vector>
6 
7 namespace torch {
8 namespace jit {
9 
10 namespace script {
11 struct Method;
12 struct Module;
13 } // namespace script
14 
15 TORCH_API void PythonPrint(
16  std::ostream& out,
17  const Graph& graph,
18  std::vector<at::Tensor>& tensor_table,
19  std::vector<ClassTypePtr>& class_table,
20  bool enforce_importable = false);
21 TORCH_API void PythonPrint(
22  std::ostream& out,
23  const script::Method& graph,
24  std::vector<at::Tensor>& tensor_table,
25  std::vector<ClassTypePtr>& class_table,
26  bool enforce_importable = false);
27 TORCH_API void PythonPrint(
28  std::ostream& out,
29  const script::Module& module,
30  std::vector<at::Tensor>& tensor_table,
31  std::vector<ClassTypePtr>& class_table,
32  bool enforce_importable = false);
33 TORCH_API void PythonPrint(
34  std::ostream& out,
35  const ClassTypePtr& classType,
36  std::vector<at::Tensor>& tensor_table,
37  std::vector<ClassTypePtr>& class_table,
38  bool enforce_importable = false);
39 
40 TORCH_API bool printerHasSpecialCaseFor(c10::Symbol sym);
41 } // namespace jit
42 } // namespace torch
Definition: jit_type.h:17