目录

TilingParse

Function Description

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:

using KernelFunc = UINT32 (*)(KernelContext *context);

The TilingParseFunc type is defined as follows:

using TilingParseFunc = UINT32 (*)(TilingParseContext *context);

Function Prototype

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.

Return Value

OpImplRegisterV2 object of the operator, where the TilingParse function is registered.

Restrictions

None