Expand description
Eager AD support for out-of-tree extension primitives.
Structs§
- Extension
Cache Key - A stable key for one extension-owned runtime cache entry.
- Extension
Cache Limits - Bounded retention limits for extension runtime caches.
- Extension
Cache Store - Bounded type-erased cache storage owned by an extension executor.
- Extension
Execution Context - Backend and cache state passed to one extension execution.
- Extension
Executor - Runtime owner for backend-specific extension dispatch and caches.
- Extension
Registry - Registry of backend-specific extension runtime executors.
- Extension
Rule Set - Explicit, owned set of extension AD rules.
Enums§
- Extension
Cache Selector - Selector used to inspect or clear extension cache entries.
- Extension
Registry Error - Errors returned from extension registries.
- Extension
Runtime Registry Error - Errors returned by backend-parametric extension runtime registries.
Traits§
- Extension
AdRule - AD rule provider for an extension family.
- Extension
Op - The contract every out-of-tree extension primitive must satisfy.
- Extension
Runtime - A backend-specific runtime executor for one extension family.
Functions§
- adopt_
untracked_ eager_ value - Adopt an untracked eager tensor value produced by this runtime’s backend.
- apply
- Apply an extension op in the traced graph.
- apply_
eager - Apply an extension op to eager AD tensors.
- apply_
standard_ op - Apply one standard tensor op eagerly and record it for AD when needed.
Derive Macros§
- Extension
Family Id - Derive an inherent
FAMILY_IDconstant for an extension payload type.