Skip to main content

Module support

Module support 

Source
Expand description

Fixed-point math and support helper functions for embedded-nn.

Functionsยง

clamp
Clamps a scalar x between min and max.
divide_by_power_of_two
Rounding divide by power of two (midpoint away from zero).
doubling_high_mult_no_sat
Doubling high multiply without saturation.
pack_q15x2_32x1
Packs two 16-bit signed integers into a single 32-bit integer.
pack_s8x4_32x1
Packs four 8-bit signed integers into a single 32-bit integer.
requantize
Requantizes a 32-bit integer value given a multiplier and shift.
requantize_s64
Requantizes a 64-bit accumulator value.