Reduction and shape tape nodes #
Scalar sums, broadcast-to, reduce-sum, reduce-mean, concatenation, and the linear shape adapters used by larger graph proofs.
Continuous linear map embedding a scalar into the 1D scalar-vector representation.
Instances For
Sum all entries of a context tensor into a scalar tensor.
Instances For
NodeFDerivCorrect for sum: derivative is the composite of context projection and coordinate
sum.
Instances For
Compute the source index in s₁ that corresponds to a target index in s₂ under broadcasting.
Instances For
Broadcast a vector Vec (size s₁) into Vec (size s₂) using the CanBroadcastTo index map.
Instances For
Continuous-linear-map form of broadcastToVec.
Instances For
General shape broadcast node s₁ → s₂ (linear).
Instances For
NodeFDerivCorrect for broadcastTo (broadcasting is linear).
Instances For
Sum reduction along axis (linear; adjoint is broadcast back).
Instances For
NodeFDerivCorrect for reduce_sum.
Instances For
Mean reduction along axis (linear; adjoint is broadcast+scale).
Instances For
NodeFDerivCorrect for reduce_mean.
Instances For
Concatenate two context vectors into a single (n+m)-vector node (dim-0 concat).
Instances For
NodeFDerivCorrect for concat_vectors.
Instances For
Concatenate two tensors along dimension 0 (dim-0 concat), using flattened vectors internally.
Instances For
NodeFDerivCorrect for concat_dim0 (concat is linear).