Skip to content

Commit

Permalink
Tweak printing for now
Browse files Browse the repository at this point in the history
  • Loading branch information
jroesch committed Mar 19, 2021
1 parent c103a23 commit 7ce8f66
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/relay/ir/function.cc
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,11 @@ TVM_REGISTER_GLOBAL("relay.ir.Function")

TVM_STATIC_IR_FUNCTOR(ReprPrinter, vtable)
.set_dispatch<FunctionNode>([](const ObjectRef& ref, ReprPrinter* p) {
auto* node = static_cast<const FunctionNode*>(ref.get());
p->stream << "FunctionNode(" << node->params << ", " << node->ret_type << ", " << node->body
<< ", " << node->type_params << ", " << node->attrs << ")";
// auto* node = static_cast<const FunctionNode*>(ref.get());
// p->stream << "FunctionNode(" << node->params << ", " << node->ret_type << ", " << node->body
// << ", " << node->type_params << ", " << node->attrs << ")";
// we should standardize behavior
p->stream << PrettyPrint(ref);
});

} // namespace relay
Expand Down

0 comments on commit 7ce8f66

Please sign in to comment.