DAG Nonlinear and Attention Primitives #
Elementwise nonlinearities, softmax, and multi-head self-attention for typed DAG models.
Coordinatewise sigmoid.
Instances For
Pure evaluation of coordinatewise sigmoid.
Coordinatewise SiLU, also called swish: x * sigmoid x.
Instances For
Pure evaluation of coordinatewise SiLU.
Coordinatewise Gaussian error linear unit using TorchLean's tanh approximation.
Instances For
Pure evaluation of coordinatewise GELU.
Multi-head self-attention over an arbitrary leading shape.
The pure semantics applies Spec.MultiHeadAttention.forward independently at every leading index.
The executable path uses the prefix-polymorphic TorchLean operation and may flatten those axes for
backend execution without changing the mathematical operation.
Instances For
Pure evaluation of prefix-polymorphic multi-head attention.
Coordinatewise exponential.
Instances For
Coordinatewise multiplicative inverse.
Instances For
The pure meaning of the DAG inverse node is coordinatewise reciprocal.
Coordinatewise hyperbolic tangent.
Instances For
Stable softmax along any in-bounds tensor dimension.