Instance

Description

Obtains an instance of the kernel registration class of the AI CPU operator.

Prototype

static CpuKernelRegister &Instance()

Parameters

None.

Returns

CpuKernelRegister type.

Restrictions

None

Example

1
2
std::string op_type = "add";
std::shared_ptr<CpuKernel> kernel = CpuKernelRegister::Instance().GetCpuKernel(op_type);