register_kernel
register_kernel(
cls: type[PatchProcessor] ,
backend: str ,
)
Say that a function is how an operation runs on one array backend.
Used as a decorator. The kernel takes the processor, the data, and both metadata objects, and returns an array.
Parameters
| Parameter | Description |
|---|---|
| cls | The processor the kernel belongs to. |
| backend |
The backend it is for, asbackend_name spellsit – “numpy”, “cupy”, “dask”. |