RegOpLibInit
Applicability
Product |
Supported or Not |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Header File
#include <register/op_lib_register.h>
Function Usage
Registers the initialization function of the custom operator dynamic library.
Prototype
1 | OpLibRegister &RegOpLibInit(OpLibInitFunc func) |
Parameters
Parameter |
Input/Output |
Description |
||
|---|---|---|---|---|
func |
Input |
Custom initialization function to be registered. The type is OpLibInitFunc.
|
Returns
Object of class OpLibRegister, which registers the OpLibInitFunc function.
Constraints
None
Examples
1 2 3 4 5 6 | uint32_t Init(ge::AscendString&) { // init func return 0; } REGISTER_OP_LIB (vendor_1).RegOpLibInit (Init); // Register the initialization function Init of the vendor vendor_1. |
Parent topic: OpLibRegister