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

The builder class to build variable_profile_table. More...

#include <menoh.hpp>

Public Member Functions

 variable_profile_table_builder ()
 
void add_input_profile (std::string const &name, dtype_t dtype, std::vector< int32_t > const &dims)
 Add input profile. That profile contains name, dtype and dims. More...
 
void add_output_name (std::string const &name)
 Add a name of required output. More...
 
void add_output_profile (std::string const &name, dtype_t)
 Add output profile. That profile contains name and dtype. More...
 
variable_profile_table build_variable_profile_table (model_data const &model_data)
 Factory function for variable_profile_table. More...
 

Detailed Description

The builder class to build variable_profile_table.

Constructor & Destructor Documentation

◆ variable_profile_table_builder()

menoh::variable_profile_table_builder::variable_profile_table_builder ( )
inline

Member Function Documentation

◆ add_input_profile()

void menoh::variable_profile_table_builder::add_input_profile ( std::string const &  name,
dtype_t  dtype,
std::vector< int32_t > const &  dims 
)
inline

Add input profile. That profile contains name, dtype and dims.

◆ add_output_name()

void menoh::variable_profile_table_builder::add_output_name ( std::string const &  name)
inline

Add a name of required output.

dtype and dims of output are calculated automatically.

◆ add_output_profile()

void menoh::variable_profile_table_builder::add_output_profile ( std::string const &  name,
dtype_t   
)
inline

Add output profile. That profile contains name and dtype.

dims of output are calculated automatically.

Note
This function is deprecated. Given dtype is totally ignored and inferenced by dtype of input. Use add_output_name() instead.

◆ build_variable_profile_table()

variable_profile_table menoh::variable_profile_table_builder::build_variable_profile_table ( model_data const &  model_data)
inline

Factory function for variable_profile_table.


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