Precision-switched constructors — XAt bf16 rnd … is XBf16 rnd … or X … #
Every bf16 op is its f32 peer with one extra leading argument, the rounding rnd. XAt bf16 rnd …
is the if bf16 then .XBf16 rnd … else .X … choice, written once per constructor instead of at
every call site. pretty evaluates it, so the emitted text is exactly the chosen branch's.
A leaf on Basic: the renderers (RenderKit and the *Render* modules) and the typed forward
graphs in Nets/ (r34IdGraphB, …) both choose the constructor here, so a render and the graph
its faithfulness theorem is about cannot pick different kinds for the same flag. The renderers
pass zrnd = id (Pretty.lean), the graphs pass id, and Foundation.Bf16Erasure states
each switch at id equal to its f32 peer (denOp_convAt_id, den_convBackBatchedAt_id, …).
conv, or its bf16 peer at rounding rnd when bf16.
Equations
- One or more equations did not get rendered due to their size.
Instances For
convBackBatched, or its bf16 peer at rounding rnd when bf16.
Equations
- Proofs.StableHLO.SHlo.convBackBatchedAt bf16 rnd wName W b = if bf16 = true then Proofs.StableHLO.SHlo.convBackBatchedBf16 rnd wName W b else Proofs.StableHLO.SHlo.convBackBatched wName W b
Instances For
convStride4, or its bf16 peer at rounding rnd when bf16.
Equations
- One or more equations did not get rendered due to their size.
Instances For
convStride4WeightGradB, or its bf16 peer at rounding rnd when bf16.
Equations
- One or more equations did not get rendered due to their size.
Instances For
convStrided, or its bf16 peer at rounding rnd when bf16.
Equations
- One or more equations did not get rendered due to their size.
Instances For
convStridedBackBatched, or its bf16 peer at rounding rnd when bf16.
Equations
- One or more equations did not get rendered due to their size.
Instances For
convStridedWeightGradB, or its bf16 peer at rounding rnd when bf16.
Equations
- One or more equations did not get rendered due to their size.
Instances For
convStridedXla, or its bf16 peer at rounding rnd when bf16.
Equations
- One or more equations did not get rendered due to their size.
Instances For
convStridedXlaWeightGradB, or its bf16 peer at rounding rnd when bf16.
Equations
- One or more equations did not get rendered due to their size.
Instances For
convWeightGradB, or its bf16 peer at rounding rnd when bf16.
Equations
- Proofs.StableHLO.SHlo.convWeightGradBAt bf16 rnd xName b x W = if bf16 = true then Proofs.StableHLO.SHlo.convWeightGradBBf16 rnd xName b x W else Proofs.StableHLO.SHlo.convWeightGradB xName b x W
Instances For
denseRow, or its bf16 peer at rounding rnd when bf16.
Equations
- One or more equations did not get rendered due to their size.
Instances For
denseRowBack, or its bf16 peer at rounding rnd when bf16.
Equations
- Proofs.StableHLO.BatchableOp.denseRowBackAt bf16 rnd wName W = if bf16 = true then Proofs.StableHLO.BatchableOp.denseRowBackBf16 rnd wName W else Proofs.StableHLO.BatchableOp.denseRowBack wName W
Instances For
depthwise, or its bf16 peer at rounding rnd when bf16.
Equations
- One or more equations did not get rendered due to their size.
Instances For
depthwiseBackBatched, or its bf16 peer at rounding rnd when bf16.
Equations
- One or more equations did not get rendered due to their size.
Instances For
depthwiseStrided, or its bf16 peer at rounding rnd when bf16.
Equations
- One or more equations did not get rendered due to their size.
Instances For
depthwiseStridedBackBatched, or its bf16 peer at rounding rnd when bf16.
Equations
- One or more equations did not get rendered due to their size.
Instances For
depthwiseStridedWeightGradB, or its bf16 peer at rounding rnd when bf16.
Equations
- One or more equations did not get rendered due to their size.
Instances For
depthwiseStridedXla, or its bf16 peer at rounding rnd when bf16.
Equations
- One or more equations did not get rendered due to their size.
Instances For
depthwiseStridedXlaBackBatched, or its bf16 peer at rounding rnd when bf16.
Equations
- One or more equations did not get rendered due to their size.
Instances For
depthwiseStridedXlaWeightGradB, or its bf16 peer at rounding rnd when bf16.
Equations
- One or more equations did not get rendered due to their size.
Instances For
depthwiseWeightGradB, or its bf16 peer at rounding rnd when bf16.
Equations
- One or more equations did not get rendered due to their size.
Instances For
flatConvF, or its bf16 peer at rounding rnd when bf16.
Equations
- Proofs.StableHLO.SHlo.flatConvFAt bf16 rnd wName bName W b = if bf16 = true then Proofs.StableHLO.SHlo.flatConvFBf16 rnd wName bName W b else Proofs.StableHLO.SHlo.flatConvF wName bName W b
Instances For
matmulFB, or its bf16 peer at rounding rnd when bf16.
Equations
Instances For
patchEmbed, or its bf16 peer at rounding rnd when bf16.
Equations
- One or more equations did not get rendered due to their size.
Instances For
patchEmbedWeightGradB, or its bf16 peer at rounding rnd when bf16.
Equations
- One or more equations did not get rendered due to their size.
Instances For
rowDenseWeightGradB, or its bf16 peer at rounding rnd when bf16.
Equations
- Proofs.StableHLO.SHlo.rowDenseWeightGradBAt bf16 rnd xName x = if bf16 = true then Proofs.StableHLO.SHlo.rowDenseWeightGradBBf16 rnd xName x else Proofs.StableHLO.SHlo.rowDenseWeightGradB xName x