Backend Planner #
The planner is the bridge between a semantic graph and backend capsules.
Given a kernel policy, an operation tag, and a capsule registry, it chooses an admissible capsule
or explains why none is available. Graph-aware layers recover operation tags from NN.IR.OpKind
and call the same selection per node.
A selected kernel capsule for one graph operation.
- op : BackendOp
- capsule : KernelCapsule
Instances For
One selected kernel capsule per requested operation. This record does not execute them.
- kernels : Array PlannedKernel
Instances For
Names of the selected backend capsules, useful for audits and logs.
Instances For
Choose a backend capsule for one operation.
Instances For
def
NN.Backend.planOps
(policy : KernelPolicy)
(registry : Array KernelCapsule)
(ops : Array BackendOp)
:
Choose backend capsules for a sequence of operations.
Instances For
def
NN.Backend.planOpsAvailable
(policy : KernelPolicy)
(availability : Availability)
(registry : Array KernelCapsule)
(ops : Array BackendOp)
:
Choose backend capsules after filtering the registry by build availability.