RunCpuKernel

Description

Executes the Compute function of the AI CPU operator kernel.

Prototype

uint32_t RunCpuKernel(CpuKernelContext &ctx)

Parameters

Parameter

Input/Output

Description

ctx

Input

Context of CpuKernel.

CpuKernelContext type.

Returns

uint32_t for the RunCpuKernel execution result.

  • 0: success
  • Other values: failure

Restrictions

None

Example

CpuKernelContext ctx;
uint32_t ret = CpuKernelRegister::Instance().RunCpuKernel(ctx);