The custom kernel is the implementation of corresponding operators of the kernel function (or kernel). The PaddlePaddle framework provides the custom kernel for the external device registered by the custom runtime, achieving the compiling, registration, and automatic loading of the kernel independent of the framework. The implementation of the custom kernel is based on the public kernel statement of PaddlePaddle, and public C++ API and register macro.
Kernel function statement : to introduce the kernel statement of PaddlePaddle
Kernel implementation API : to introduce the C++ API required in the implementation of the custom function.
Kernel register API : to introduce the register macro of the custom kernel.