11 void get_dump_from_node(std::ostringstream* oss,
14 (*oss) << std::string(indent,
' ') << node->GetDump() <<
"\n";
16 TREELITE_CHECK(child);
17 get_dump_from_node(oss, child, indent + 2);
26 template <
typename ThresholdType,
typename LeafOutputType>
28 ASTBuilder<ThresholdType, LeafOutputType>::GetDump()
const {
29 std::ostringstream oss;
30 get_dump_from_node(&oss, this->main_node, 0);
34 template std::string ASTBuilder<float, uint32_t>::GetDump()
const;
35 template std::string ASTBuilder<float, float>::GetDump()
const;
36 template std::string ASTBuilder<double, uint32_t>::GetDump()
const;
37 template std::string ASTBuilder<double, double>::GetDump()
const;
logging facility for Treelite