Treelite
Functions
model_concat.cc File Reference

Implementation of model concatenation. More...

#include <treelite/tree.h>
#include <treelite/logging.h>
#include <algorithm>
#include <memory>
#include <type_traits>
Include dependency graph for model_concat.cc:

Go to the source code of this file.

Functions

std::unique_ptr< Model > ConcatenateModelObjects (const std::vector< const Model *> &objs)
 Concatenate multiple model objects into a single model object by copying all member trees into the destination model object. More...
 

Detailed Description

Implementation of model concatenation.

Copyright (c) 2022 by Contributors

Author
Hyunsu Cho

Definition in file model_concat.cc.

Function Documentation

◆ ConcatenateModelObjects()

std::unique_ptr< Model > ConcatenateModelObjects ( const std::vector< const Model *> &  objs)

Concatenate multiple model objects into a single model object by copying all member trees into the destination model object.

Parameters
objsList of model objects
Returns
Concatenated model

Definition at line 16 of file model_concat.cc.