19 #ifndef TVM_SCRIPT_PRINTER_H_ 20 #define TVM_SCRIPT_PRINTER_H_ 43 const ObjectRef& root_node,
45 Map<String, String> ir_prefix,
46 int indent_spaces = 4,
47 bool print_line_numbers =
false,
48 int num_context_lines = -1,
49 Optional<ObjectPath> path_to_underline =
NullOpt 56 #endif // TVM_SCRIPT_PRINTER_H_ Definitions and helper macros for IR/AST nodes.
runtime implementation for LibTorch/TorchScript.
Definition: analyzer.h:36
String Script(const ObjectRef &root_node, String ir_name, Map< String, String > ir_prefix, int indent_spaces=4, bool print_line_numbers=false, int num_context_lines=-1, Optional< ObjectPath > path_to_underline=NullOpt)
Print IR graph as TVMScript code.
constexpr runtime::NullOptType NullOpt
Definition: optional.h:160