Edge AI Add-on API 3.0.0
Loading...
Searching...
No Matches

◆ nrf_axon_compiler_sig_tanh_dequant_consts()

void nrf_axon_compiler_sig_tanh_dequant_consts ( int32_t * multiplier,
uint8_t * shift )

adjusts dequantization multiplier and scaler to produce a q3.12

The input dequantization need to be multplied by 2^12. This function will massage the original values to perform the additional multiply by some combination of increasing the multiplier or decreasing the shift.

Parameters
[in,out]multiplierinput values are 1st multplied by this.
[in,out]shiftinput values are then rounded by this many bits.