23 #ifndef TVM_NODE_REPR_PRINTER_H_
24 #define TVM_NODE_REPR_PRINTER_H_
69 TVM_DLL std::ostream&
Stream()
const;
103 std::ostringstream os;
A dynamically dispatched functor on the type of the first argument.
Definition: functor.h:64
Legacy behavior of ReprPrinter.
Definition: repr_printer.h:54
void Print(const ObjectRef &node)
The node to be printed.
static bool CanDispatch(const ObjectRef &node)
Could the LegacyPrinter dispatch the node.
std::ostream & Stream() const
Return the ostream it maintains.
ReprLegacyPrinter(std::ostream &stream)
Definition: repr_printer.h:59
int indent
The indentation level.
Definition: repr_printer.h:57
void PrintIndent()
Print indent to the stream.
A printer class to print the AST/IR nodes.
Definition: repr_printer.h:34
void Print(const ObjectRef &node)
The node to be printed.
std::ostream & stream
The output stream.
Definition: repr_printer.h:37
ReprPrinter(std::ostream &stream)
Definition: repr_printer.h:41
void PrintIndent()
Print indent to the stream.
int indent
The indentation level.
Definition: repr_printer.h:39
Base class of all object reference.
Definition: object.h:519
base class of all object containers.
Definition: object.h:171
Defines the Functor data structures.
std::string AsLegacyRepr(const ObjectRef &n)
Definition: repr_printer.h:102
std::ostream & operator<<(std::ostream &os, const ObjectRef &n)
Definition: repr_printer.h:97
runtime implementation for LibTorch/TorchScript.
Definition: analyzer.h:36
void Dump(const runtime::ObjectRef &node)
Dump the node to stderr, used for debug purposes.