8 #ifndef TREELITE_COMPILER_H_ 9 #define TREELITE_COMPILER_H_ 11 #include <dmlc/registry.h> 47 static Compiler* Create(
const std::string& name,
55 :
public dmlc::FunctionRegEntryBase<CompilerReg,
56 std::function<Compiler* (const compiler::CompilerParam&)> > {
71 #define TREELITE_REGISTER_COMPILER(UniqueId, Name) \ 72 static DMLC_ATTRIBUTE_UNUSED ::treelite::CompilerReg & \ 73 __make_ ## CompilerReg ## _ ## UniqueId ## __ = \ 74 ::dmlc::Registry< ::treelite::CompilerReg>::Get()->__REGISTER__(Name) 78 #endif // TREELITE_COMPILER_H_ thin wrapper for tree ensemble model
parameters for tree compiler
semantic model consists of a header, function registry, and a list of translation units ...
Registry entry for compiler.