GenSimplifiedKey

Function Usage

Registers the GenSimplifiedKey function of an 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:

1
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 simplified key generation logic.

Prototype

1
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:

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

Returns

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

Constraints

None