Constructor and Destructor

Function Usage

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.

Prototype

  • Sets the operator type to op_type, constructs an OpImplRegisterV2 object for operator registration, and initializes the registration data by default.
    1
    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.
    1
    2
    3
    4
    OpImplRegisterV2(OpImplRegisterV2 &&register_data) noexcept
    OpImplRegisterV2(const OpImplRegisterV2 &register_data)
    OpImplRegisterV2 &operator=(const OpImplRegisterV2 &) = delete
    OpImplRegisterV2 &operator=(OpImplRegisterV2 &&) = delete
    
  • Destructor
    1
    ~OpImplRegisterV2()
    

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

Constraints

None