IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).

Mojo function

gate_coefficients

def gate_coefficients(gate: Piece, inv_temperature: Float32, gate_eps: Float32) -> Tuple[SIMD[.float32, 8], SIMD[.float32, 8]]

Returns (alpha, beta) of the gate's logits, computed as the unfused graph computes them (which folds gate / T into a reciprocal multiply).

Returns:

Tuple[SIMD[.float32, 8], SIMD[.float32, 8]]

Was this page helpful?