API symbolslibrary
Copy
tensorplay.library.get_kernel
- tensorplay.library.get_kernel(op: str | CustomOpDef, dispatch_key: str) Callable[[...], Any][source]
dispatch_keyaccepts"cpu"/"cuda"/"default"and the composite spellings. RaisesLookupErrorwhen nothing usable is registered (a disabled concrete kernel counts as absent, matchingCustomOpDef.set_kernel_enabled()visibility).
Help improve this page
Found an error, an unclear step, or a missing example?
Was this page helpful?
tensorplay.library.define
Creates the CustomOpDef if absent (kernels are then attached with impl() or Library("ns", "IMPL").impl ). tags is Like Library.define , a full "ns::op(Tensor) -> Tensor" string may be pasted as qualname .
tensorplay.library.impl
types accepts concrete devices ( "CPU" / "CUDA" ) or composite spellings ( CompositeExplicitAutograd → the device-agnostic slot).

