Standard sequential GraphSpec primitives #
This module provides dense linear, ReLU, and axis-wise softmax primitives together with their
corresponding Chain constructors. Each primitive supplies pure tensor semantics, executable
TorchLean lowering, and deterministic layer initialization.
The affine map $x \mapsto Wx + b$ from vectors of length inDim to vectors of length outDim.
Its parameter ABI is [[outDim, inDim], [outDim]]. The corresponding TorchLean layer initializes
the weight from the layer occurrence index and initializes the bias exactly to zero.
Instances For
Parameter-free elementwise ReLU on tensors of shape s.
Instances For
Parameter-free softmax along axis. The axis bound is carried as an instance so ill-shaped
softmax nodes cannot be constructed.
Instances For
Chain constructor for Primitive.relu.
Instances For
Chain constructor for Primitive.softmax.