LIBML Version 4.1.9
LIBML NN Software Library
Loading...
Searching...
No Matches
Functions

Performs Single Value Decomposition Filter. More...

Functions

tpt_nn_status tpt_svdf_s8 (q7_t *aOut_tensor, const q7_t *aIn_tensor, q15_t *state_tensor, const q31_t *bias, const int32_t aRank, const int32_t aIn_offset, const int32_t aOut_offset, const int32_t aIn_act_min, const int32_t aIn_act_max, const int32_t aOut_act_min, const int32_t aOut_act_max, const int32_t aIn_scale, const int32_t aIn_shift, const int32_t aOut_scale, const int32_t aOut_shift, const int32_t aIn_batch, const int32_t aIn_height, const int32_t wt_feature_batch, const q7_t *wt_feature_tensor, const int32_t wt_time_height, const q15_t *wt_time_tensor, q31_t *aTmp_buf, q31_t *aTmp_buf2)
tpt_nn_status tpt_svdf_s8_state_s8 (q7_t *aOut_tensor, const q7_t *aIn_tensor, q7_t *state_tensor, const q31_t *bias, const int32_t aRank, const int32_t aIn_offset, const int32_t aOut_offset, const int32_t aIn_act_min, const int32_t aIn_act_max, const int32_t aOut_act_min, const int32_t aOut_act_max, const int32_t aIn_scale, const int32_t aIn_shift, const int32_t aOut_scale, const int32_t aOut_shift, const int32_t aIn_batch, const int32_t aIn_height, const int32_t wt_feature_batch, const q7_t *wt_feature_tensor, const int32_t wt_time_height, const q7_t *wt_time_tensor, q31_t *aTmp_buf, q31_t *aTmp_buf2)
 This function performs single value decomposition filter for signed 8-bit integer inputs and signed 8-bit integer state tensor.

Detailed Description

Performs Single Value Decomposition Filter.

Function Documentation

◆ tpt_svdf_s8()

tpt_nn_status tpt_svdf_s8 ( q7_t * aOut_tensor,
const q7_t * aIn_tensor,
q15_t * state_tensor,
const q31_t * bias,
const int32_t aRank,
const int32_t aIn_offset,
const int32_t aOut_offset,
const int32_t aIn_act_min,
const int32_t aIn_act_max,
const int32_t aOut_act_min,
const int32_t aOut_act_max,
const int32_t aIn_scale,
const int32_t aIn_shift,
const int32_t aOut_scale,
const int32_t aOut_shift,
const int32_t aIn_batch,
const int32_t aIn_height,
const int32_t wt_feature_batch,
const q7_t * wt_feature_tensor,
const int32_t wt_time_height,
const q15_t * wt_time_tensor,
q31_t * aTmp_buf,
q31_t * aTmp_buf2 )

◆ tpt_svdf_s8_state_s8()

tpt_nn_status tpt_svdf_s8_state_s8 ( q7_t * aOut_tensor,
const q7_t * aIn_tensor,
q7_t * state_tensor,
const q31_t * bias,
const int32_t aRank,
const int32_t aIn_offset,
const int32_t aOut_offset,
const int32_t aIn_act_min,
const int32_t aIn_act_max,
const int32_t aOut_act_min,
const int32_t aOut_act_max,
const int32_t aIn_scale,
const int32_t aIn_shift,
const int32_t aOut_scale,
const int32_t aOut_shift,
const int32_t aIn_batch,
const int32_t aIn_height,
const int32_t wt_feature_batch,
const q7_t * wt_feature_tensor,
const int32_t wt_time_height,
const q7_t * wt_time_tensor,
q31_t * aTmp_buf,
q31_t * aTmp_buf2 )

This function performs single value decomposition filter for signed 8-bit integer inputs and signed 8-bit integer state tensor.

Parameters
aOut_tensorpointer of the output tensor
aIn_tensorpointer of the input tensor
state_tensorpointer of the state tensor
biaspointer of the bias vector
aRanknumber of largest elements to be kept
aIn_offsetoffset value for the input tensor. It should be in the range of -127 to 128.
aOut_offsetoffset value for the output tensor. It should be in the range of -127 to 128.
aIn_act_minminimum value that the intput tensor is limited to. It should be in the range of -128 to 127.
aIn_act_maxmaximum value that the intput tensor is limited to. It should be in the range of -128 to 127.
aOut_act_minminimum value that the outtput tensor is limited to. It should be in the range of -128 to 127.
aOut_act_maxmaximum value that the intput tensor is limited to. It should be in the range of -128 to 127.
aIn_scalescaling value for the quantization on the inputs
aIn_shiftshift amount for the quantization on the inputs
aOut_scalescaling value for the quantization on the outputs
aOut_shiftshift amount for the quantization on the outputs
aIn_batchsize of input tensor batches
aIn_heightheight of the input tensor
wt_feature_batchsize of the feature weight tensor batches
wt_feature_tensorpointer of the feature weight tensor
wt_time_heightheight of the time weight tensor
wt_time_tensorpointer of the time weight tensor
aTmp_bufpointer of the bias vector
aTmp_buf2pointer of the output tensor
Returns
tpt_nn_status
Note
  • bias could be a null pointer as the bias vector is optional for this function.
  • During the quantization process, a positive out_shift value is used to left shift calculation results whereas a negative one is used to right shift.