目录

OperatorCreatorRegister

Function Description

Constructs or destructs an object of class OperatorCreatorRegister.

Function Prototype

APIs taking string arguments will be deprecated in future releases. Use APIs taking non-string arguments instead.

OperatorCreatorRegister(const std::string &operator_type, OpCreator const &op_creator);
OperatorCreatorRegister(const char_t *const operator_type, OpCreatorV2 const &op_creator);
~OperatorCreatorRegister() = default;

Parameters

Parameter Input/Output Description
operator_type Input Operator type.
op_creator Input Operator constructor.

Return Value

An object of the OperatorCreatorRegister class.

Restrictions

This API registers an operator prototype and is referenced by other header files. Therefore, it is not directly called by operator developers.