7 #ifndef TREELITE_COMPILER_H_ 8 #define TREELITE_COMPILER_H_ 10 #include <unordered_map> 28 std::vector<char> content_binary;
34 explicit FileEntry(
const std::string& content) =
delete;
36 : content(std::move(content)), is_binary(
false) {}
37 explicit FileEntry(
const std::vector<char>&) =
delete;
38 explicit FileEntry(std::vector<char>&& content)
39 : content_binary(std::move(content)), is_binary(
true) {}
46 std::unordered_map<std::string, FileEntry> files;
47 std::string file_prefix;
73 static Compiler* Create(
const std::string& name,
74 const char* param_json_str);
79 #endif // TREELITE_COMPILER_H_
parameters for tree compiler
thin wrapper for tree ensemble model