API symbolslibrary
Copy
tensorplay.library.register_kernel
- tensorplay.library.register_kernel(op: str | CustomOpDef, device_types: Any = None, func: Callable[[...], Any] | None = None, /, *, lib: Any = None) Callable[[Callable[[...], Any]], Callable[[...], Any]][source]
Accepts a
CustomOpDefor a qualified operator name.device_types=Noneor an empty iterable means the device-agnostic slot; composite spellings (Composite…) map there too. Usable directly or as a decorator.
Help improve this page
Found an error, an unclear step, or a missing example?
Was this page helpful?

