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)
 
void LoadProtobufModel (const char *filename, Model *out)
 load a model in Protocol Buffers format. Protocol Buffers (google/protobuf) is a language- and platform-neutral mechanism for serializing structured data. See tree.proto for format spec. More...
 
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 344 of file protobuf.cc.

◆ LoadProtobufModel()

void LoadProtobufModel ( const char *  filename,
Model out 
)

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

Parameters
filenamename of model file
outreference to loaded model

Definition at line 340 of file protobuf.cc.