Class ConverterContext

Class Documentation

class ConverterContext

ConverterContext defined is to set the basic information of the exported model.

Public Functions

ConverterContext() = default

Constructor.

~ConverterContext() = default

Destructor.

Public Static Functions

static inline void SetGraphOutputTensorNames(const std::vector<std::string> &output_names)

Static method to set exported model’s output name as needed by users.

Parameters

output_names[in] Define model’s output name, the order of which is consistent with the original model.

static inline std::vector<std::string> GetGraphOutputTensorNames()

Static method to obtain the outputs’ name.

Returns

the outputs’ name.

static inline std::map<std::string, std::string> GetConfigInfo(const std::string &section)

Static method to get configure information which is used only by external extension.

Parameters

section[in] Define config section name.

Returns

config key-value map.