treelite
Functions
protobuf.cc File Reference

Frontend for protobuf model. More...

#include <dmlc/logging.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)
 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 2017 by Contributors

Author
Philip Cho

Definition in file protobuf.cc.

Function Documentation

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 336 of file protobuf.cc.

Model LoadProtobufModel ( const char *  filename)

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
Returns
loaded model

Definition at line 331 of file protobuf.cc.