6 #include <dmlc/registry.h> 11 void get_dump_from_node(std::ostringstream* oss,
14 (*oss) << std::string(indent,
' ') << node->GetDump() <<
"\n";
17 get_dump_from_node(oss, child, indent + 2);
26 DMLC_REGISTRY_FILE_TAG(dump);
28 std::string ASTBuilder::GetDump()
const {
29 std::ostringstream oss;
30 get_dump_from_node(&oss, this->main_node, 0);