Menoh
Public Member Functions | List of all members
menoh::model_builder Class Reference

The builder class to build model. More...

#include <menoh.hpp>

Public Member Functions

 model_builder (variable_profile_table const &variable_profile_table)
 
void attach_external_buffer (std::string const &name, void *buffer_handle)
 Users can attach external buffers to variables. More...
 
model build_model (model_data const &model_data, std::string const &backend_name, std::string const &backend_config="")
 Factory function for model. More...
 

Detailed Description

The builder class to build model.

Constructor & Destructor Documentation

◆ model_builder()

menoh::model_builder::model_builder ( variable_profile_table const &  variable_profile_table)
inlineexplicit

Member Function Documentation

◆ attach_external_buffer()

void menoh::model_builder::attach_external_buffer ( std::string const &  name,
void *  buffer_handle 
)
inline

Users can attach external buffers to variables.

Variables attached no external buffer are attached internal buffers allocated automatically.

Note
Users can get that internal buffer handle by calling model::get_variable() later.

◆ build_model()

model menoh::model_builder::build_model ( model_data const &  model_data,
std::string const &  backend_name,
std::string const &  backend_config = "" 
)
inline

Factory function for model.

Note
Current supported backend_name is only "mkldnn" and don't set backend config.

The documentation for this class was generated from the following file: