Treelite
Classes | Functions | Variables
tree_impl.h File Reference

Implementation for tree.h. More...

#include <algorithm>
#include <limits>
#include <memory>
#include <map>
#include <string>
#include <utility>
#include <vector>
#include <unordered_map>
#include <sstream>
#include <iomanip>
#include <typeinfo>
#include <stdexcept>
#include <iostream>
Include dependency graph for tree_impl.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ModelCreateImpl< ThresholdType, LeafOutputType >
 
class  ModelDispatchImpl< ThresholdType, LeafOutputType >
 

Functions

PyBufferFrame GetPyBufferFromArray (void *data, const char *format, size_t itemsize, size_t nitem)
 
template<typename T >
const char * InferFormatString ()
 
template<typename T >
PyBufferFrame GetPyBufferFromArray (ContiguousArray< T > *vec, const char *format)
 
template<typename T >
PyBufferFrame GetPyBufferFromArray (ContiguousArray< T > *vec)
 
PyBufferFrame GetPyBufferFromScalar (void *data, const char *format, size_t itemsize)
 
template<typename T >
PyBufferFrame GetPyBufferFromScalar (T *scalar, const char *format)
 
PyBufferFrame GetPyBufferFromScalar (TypeInfo *scalar)
 
PyBufferFrame GetPyBufferFromScalar (TaskType *scalar)
 
template<typename T >
PyBufferFrame GetPyBufferFromScalar (T *scalar)
 
template<typename T >
void InitArrayFromPyBuffer (ContiguousArray< T > *vec, PyBufferFrame buffer)
 
void InitScalarFromPyBuffer (TypeInfo *scalar, PyBufferFrame buffer)
 
void InitScalarFromPyBuffer (TaskType *scalar, PyBufferFrame buffer)
 
template<typename T >
void InitScalarFromPyBuffer (T *scalar, PyBufferFrame buffer)
 
void InitParamAndCheck (ModelParam *param, const std::vector< std::pair< std::string, std::string >> &cfg)
 

Variables

constexpr size_t kNumFramePerTree = 6
 

Detailed Description

Implementation for tree.h.

Copyright (c) 2020 by Contributors

Author
Hyunsu Cho

Definition in file tree_impl.h.