OP_TYPE_REGISTER
Function Usage
Registers an L0 operator and generates the corresponding operator name and type ID.
Prototype
OP_TYPE_REGISTER(kernelName)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
kernelName |
Input |
Operator name, for example, Abs. |
Constraints
This API must be used at the beginning of the L0 API.
Example
1 2 3 4 | namespace l0op{ OP_TYPE_REGISTER(Abs); ... } |
Parent topic: Common Macros and Classes