REGISTER_CPU_KERNEL

宏功能

注册kernel实现。

宏原型

REGISTER_CPU_KERNEL(type, clazz)

参数说明

调用示例

namespace {
const char *RESHAPE = "Reshape";
}
namespace aicpu {
uint32_t ReshapeCpuKernel::Compute(CpuKernelContext &ctx)
{
// 计算实现
}
REGISTER_CPU_KERNEL(RESHAPE, ReshapeCpuKernel);
} // namespace aicpu