Trainer Parameters #
Mutable, shape-indexed parameter storage for the Torch-style trainer. Parameter values may retain a
CUDA mirror; reads and writes keep host and device ownership explicit through the underlying
Param operations.
def
Runtime.Autograd.Torch.ParamList.subScaleMaterialize
{α : Type}
[Sub α]
[Mul α]
{s : Spec.Shape}
:
Spec.Tensor α s → Spec.Tensor α s → α → Spec.Tensor α s
Materialize value - rate * gradient in one traversal.
Instances For
Allocate mutable parameters from an ordered tensor pack.
Instances For
Allocate mutable parameters with an explicit trainability mask.
The mask follows parameter order and must have exactly the same length as the shape list.
Instances For
Read the trainability mask in parameter order.
Instances For
Read current host parameter values without synchronizing stale CUDA mirrors.
Instances For
def
Runtime.Autograd.Torch.ParamList.valuesSynced
{α : Type}
[Internal.CudaBridge.TensorConv α]
[DecidableEq Spec.Shape]
{ss : List Spec.Shape}
:
Read parameter values after synchronizing any current CUDA mirrors to the host.
Instances For
Replace host parameter values from an ordered tensor pack.