register_kernel

function of dascore.core.processor source

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 has the class’s own kernel signature, (processor, data, **plan), and returns an array.

Parameters

Parameter Description
cls The processor the kernel belongs to.
backend The backend it is for, as
backend_name spells
it – “numpy”, “cupy”, “dask”.