GetBufferSizePooling
-
int32_t riscv_avgpool_s16_get_buffer_size(const int output_x, const int ch_src)
-
int32_t riscv_avgpool_s16_get_buffer_size_dsp(const int output_x, const int ch_src)
-
int32_t riscv_avgpool_s8_get_buffer_size(const int output_x, const int ch_src)
-
int32_t riscv_avgpool_s8_get_buffer_size_dsp(const int output_x, const int ch_src)
- group GetBufferSizePooling
Functions
-
int32_t riscv_avgpool_s16_get_buffer_size(const int output_x, const int ch_src)
Get the required buffer size for S16 average pooling function.
- Parameters
dim_dst_width – [in] output tensor dimension
ch_src – [in] number of input tensor channels
- Returns
The function returns required buffer size in bytes
-
int32_t riscv_avgpool_s16_get_buffer_size_dsp(const int output_x, const int ch_src)
Get the required buffer size for S16 average pooling function for processors with DSP extension. Refer to riscv_avgpool_s16_get_buffer_size() for function argument details.
Note
Intended for compilation on Host. If compiling for an Riscv target, use riscv_avgpool_s16_get_buffer_size().
-
int32_t riscv_avgpool_s8_get_buffer_size(const int output_x, const int ch_src)
Get the required buffer size for S8 average pooling function.
- Parameters
dim_dst_width – [in] output tensor dimension
ch_src – [in] number of input tensor channels
- Returns
The function returns required buffer size in bytes
-
int32_t riscv_avgpool_s8_get_buffer_size_dsp(const int output_x, const int ch_src)
Get the required buffer size for S8 average pooling function for processors with DSP extension. Refer to riscv_avgpool_s8_get_buffer_size() for function argument details.
Note
Intended for compilation on Host. If compiling for an Riscv target, use riscv_avgpool_s8_get_buffer_size().
-
int32_t riscv_avgpool_s16_get_buffer_size(const int output_x, const int ch_src)