Skip to contents

The AEF Int8 decode ((x / 127.5)^2) * sign(x): per-value, nonlinear, sign- preserving, mapping the code range [-127, 127] to ~[-1, 1]. Written in the g_* vocabulary, so applying it with lazy_map() after lazy_dataset() fuses the decode onto the read, on the device rather than as a separate decode pass.

Usage

dequantize_aef(x)

Arguments

x

Int8 codes (traced array or plain numeric).

Value

The dequantized values, same shape as x.