Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enforce invariant: Treelite codegen doesn't support uint32 leaf output #240

Merged
merged 2 commits into from
Dec 29, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/compiler/ast_native.cc
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ class ASTNativeCompiler : public Compiler {
}

CompiledModel Compile(const Model& model) override {
CHECK(model.GetLeafOutputType() != TypeInfo::kUInt32)
<< "Integer leaf outputs not yet supported";
this->pred_tranform_func_ = PredTransformFunction("native", model);
return model.Dispatch([this](const auto& model_handle) {
return this->CompileImpl(model_handle);
Expand Down