Reference and Portable Backend Capsules #
Portable capsules for paths that do not require CUDA or LibTorch.
These are not meant to win benchmarks. They keep TorchLean runnable on CPU-only machines and give the planner a clear fallback vocabulary for reference/spec-aligned execution.
def
NN.Backend.Reference.referenceCapsule
(name : String)
(op : BackendOp)
(specName valueSummary vjpSummary : String)
(vjpMode : VJPMode := VJPMode.torchLeanTape)
:
Instances For
Instances For
Instances For
def
NN.Backend.Reference.referenceForwardOnlyCapsule
(op : BackendOp)
(specName valueSummary : String)
:
Instances For
Instances For
Reference batched matrix multiplication.
Instances For
Reference mean-squared-error loss.
Instances For
Reference channel-first BatchNorm runtime op.
Instances For
Reference generic channel-first convolution.
Instances For
Reference generic channel-first transpose convolution.
Instances For
Reference 2D transpose convolution.
Instances For
Reference padded 2D max pooling.
Instances For
Reference smooth max pooling.
Instances For
Reference smooth 2D max pooling.
Instances For
Reference padded 2D average pooling.
Instances For
Reference attention path using the composed TorchLean expression.
Instances For
Cross-platform reference capsules.