Skip to content
heliaAOT
API Reference
HELIA HUB

Fp16Overflow

Machine-readable model

  • Fp16OverflowclassThe input magnitude below which a packed FP16 convolution fed from a model input cannot overflow a lane block.
class

The input magnitude below which a packed FP16 convolution fed from a model input cannot overflow a lane block.

helia_aot/optimization/schema.py:875

Fp16Overflow()

The input magnitude below which a packed FP16 convolution fed from a model input cannot overflow a lane block.

attribute

threshold

Python

helia_aot/optimization/schema.py:882

threshold: float = Field(..., ge=0, description="Input magnitude below which no float16 lane block can reach 65504, allowing for float16 rounding: (65504 / (1 + g) - |bias|) / sum|w| over the first 32 taps and 65504 / (1 + g) / sum|w| over each later block, where g = n*u / (1 - n*u) bounds n round-to-nearest operations (the block's taps, plus one for the bias in block 0) at u = 2^-11; the minimum over output channels and blocks. The layer's float16 output can still overflow when its exact value exceeds the float16 range")