TilingParse
Function Usage
Registers the TilingParse function of an operator to parse the JSON file generated during operator build. During registration, you need to specify the data type T for the operator. This data type is used to store the parsed operator information.
You need to write a function of the KernelFunc or TilingParseFunc type for the operator and register the function using the following APIs.
The KernelFunc type is defined as follows:
1 | using KernelFunc = UINT32 (*)(KernelContext *context); |
The TilingParseFunc type is defined as follows:
1 | using TilingParseFunc = UINT32 (*)(TilingParseContext *context); |
Prototype
1 2 3 4 | template<typename T> OpImplRegisterV2 &TilingParse(KernelFunc const tiling_parse_func) template<typename T> OpImplRegisterV2 &TilingParse(TilingParseFunc const tiling_parse_func) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
tiling_parse_func |
Input |
TilingParse function to be registered, whose type can be KernelFunc or TilingParseFunc. |
Returns
OpImplRegisterV2 object of the operator, where the TilingParse function is registered.
Constraints
None
Parent topic: OpImplRegisterV2