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