Last updated: 2026-06-12
Inference Runtime
Sigmoid Mul
T-CPU sigmoid-gated multiply implementation.
Computes: output[i] = sigmoid(gate[i]) * x[i] Used for attention gating (Q-gate) and SSM gated norm.
2 exports shown
struct
Params
pub const Params = struct Inputs and outputs for one sigmoid-gated multiply.
function
run
pub fn run(params: Params) !void Compute `output[i] = sigmoid(gate[i]) * x[i]` for every gate element.
Used by attention Q-gating and SSM gated-norm paths where a learned scalar selects how much of `x` to pass through. is shorter than `gate`, otherwise void.