![]() |
LIBML Version 4.1.9
LIBML NN Software Library
|
Functions | |
| void | tpt_softmax_s8_hp (int8_t *aOut_tensor, const int8_t *aIn_tensor, const int32_t in_tensor_row, const int32_t in_tensor_col, const int32_t mult, const int32_t lshift, const int32_t diff_min) |
| This is a softmax function for signed 8-bit integer input/output tensor with high precision algorithm. | |
| void | tpt_softmax_u8_hp (uint8_t *aOut_tensor, const uint8_t *aIn_tensor, const int32_t aIn_tensor_row, const int32_t aIn_tensor_col, const int32_t scale, const int32_t left_shift, const int32_t diff_min) |
| void tpt_softmax_s8_hp | ( | int8_t * | aOut_tensor, |
| const int8_t * | aIn_tensor, | ||
| const int32_t | in_tensor_row, | ||
| const int32_t | in_tensor_col, | ||
| const int32_t | mult, | ||
| const int32_t | lshift, | ||
| const int32_t | diff_min ) |
This is a softmax function for signed 8-bit integer input/output tensor with high precision algorithm.
| aOut_tensor | pointer of the output tensor |
| aIn_tensor | pointer of the input tensor |
| in_tensor_row | number of rows in the input tensor |
| in_tensor_col | number of columns in the input tensor |
| mult | scaling value for input quantization |
| lshift | left shift amount for input quantization |
| diff_min | minimum threshold to perform the quantized exponential operation. The difference can be obtained by subtracting the input from the maximum in row. |
| void tpt_softmax_u8_hp | ( | uint8_t * | aOut_tensor, |
| const uint8_t * | aIn_tensor, | ||
| const int32_t | aIn_tensor_row, | ||
| const int32_t | aIn_tensor_col, | ||
| const int32_t | scale, | ||
| const int32_t | left_shift, | ||
| const int32_t | diff_min ) |