Constructor and Destructor
Description
As a registration API class, OpImplRegisterV2 provides a series of operator prototype registration APIs for users to register information of a specific operator type, including the Tiling function, Infershape function, and private attributes. This class is indirectly used when users call the operator prototype registration API for registration.
Prototype
- Sets the operator type to op_type, constructs an OpImplRegisterV2 object for operator registration, and initializes the registration data by default.
explicit OpImplRegisterV2(const ge::char_t *op_type)
- Both move constructor and copy constructor can register the OpImplFunctions data of register_data (another OpImplRegisterV2 object) with the map managed by the OpImplRegistry singleton and generate a new OpImplRegisterV2 object that is initialized by default.
OpImplRegisterV2(OpImplRegisterV2 &®ister_data) noexcept
OpImplRegisterV2(const OpImplRegisterV2 ®ister_data)
OpImplRegisterV2 &operator=(const OpImplRegisterV2 &) = delete
OpImplRegisterV2 &operator=(OpImplRegisterV2 &&) = delete
- Destructor
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
op_type |
Input |
Specified operator type. |
register_data |
Input |
Another registered object, which is a reference of the OpImplRegisterV2 type. |
Returns
An OpImplRegisterV2 object used for operator registration
Restrictions
None