GenSimplifiedKey

Description

Registers the GenSimplifiedKey function of the operator to quickly provide a binary matching key value.

You need to write a function of the GenSimplifiedKey type for the operator and use this API to register the function.

The GenSimplifiedKey type is defined as follows:

using GenSimplifiedKeyKernelFunc = UINT32 (*)(TilingContext *, ge::char_t *);

The GenSimplifiedKey function takes a TilingContext parameter and a ge::char_t parameter as the input. You can use the input operator to customize the simplifiedkye generation logic.

Prototype

OpImplRegisterV2 &GenSimplifiedKey(GenSimplifiedKeyKernelFunc gen_simplifiedkey_func)

Parameters

Parameter

Input/Output

Description

gen_simplifiedkey_func

Input

User-defined GenSimplifiedKey function to be registered, which is of the GenSimplifiedKeyKernelFunc type.

The GenSimplifiedKeyKernelFunc type is defined as follows:

using GenSimplifiedKeyKernelFunc = UINT32 (*)(TilingContext *, ge::char_t *);

Returns

OpImplRegisterV2 object of the operator, where the function for generating simplified binary matching keys is registered.

Restrictions

None