Treelite
Functions
protobuf.cc File Reference

Frontend for Protobuf model. More...

#include <dmlc/logging.h>
#include <dmlc/registry.h>
#include <dmlc/io.h>
#include <treelite/tree.h>
#include <queue>
Include dependency graph for protobuf.cc:

Go to the source code of this file.

Functions

 DMLC_REGISTRY_FILE_TAG (protobuf)
 
Model LoadProtobufModel (const char *filename)
 
void ExportProtobufModel (const char *filename, const Model &model)
 export a model in Protocol Buffers format. Protocol Buffers (google/protobuf) is a language- and platform-neutral mechanism for serializing structured data. See src/tree.proto for format spec. More...
 

Detailed Description

Frontend for Protobuf model.

Copyright (c) 2017-2020 by Contributors

Author
Hyunsu Cho

Definition in file protobuf.cc.

Function Documentation

◆ ExportProtobufModel()

void ExportProtobufModel ( const char *  filename,
const Model model 
)

export a model in Protocol Buffers format. Protocol Buffers (google/protobuf) is a language- and platform-neutral mechanism for serializing structured data. See src/tree.proto for format spec.

Parameters
filenamename of model file
modelmodel to export

Definition at line 345 of file protobuf.cc.