Simd Library Documentation.

Home | Release Notes | Download | Documentation | Issues | GitHub
Activation functions need to quantization

These function are used to accelerate quantization algorithms in Synet Framework. More...

Functions

SIMD_API void SimdSynetQuantizedPreluLayerForward (const uint8_t *src, const float *srcScale, int srcZero, size_t channels, size_t spatial, const float *slope, uint8_t *dst, const float *dstScale, int dstZero, SimdTensorFormatType format)
 This function is used for forward propagation of QuantizedPreluLayer. More...
 

Detailed Description

These function are used to accelerate quantization algorithms in Synet Framework.

Function Documentation

◆ SimdSynetQuantizedPreluLayerForward()

void SimdSynetQuantizedPreluLayerForward ( const uint8_t *  src,
const float *  srcScale,
int  srcZero,
size_t  channels,
size_t  spatial,
const float *  slope,
uint8_t *  dst,
const float *  dstScale,
int  dstZero,
SimdTensorFormatType  format 
)

This function is used for forward propagation of QuantizedPreluLayer.

Note
This function is used in Synet Framework.
Parameters
[in]src- a pointer to the 8-bit integer array with input tensor.
[in]srcScale- a quantization scale parameter of input tensor.
[in]srcZero- a quantization zero parameter of input tensor.
[in]channels- a number of channels in (input/output) tensors.
[in]spatial- a spatial size of (input/output) tensors.
[in]slope- a pointer to the 32-bit float array with slope coefficients. The size of the array is equal to channels.
[out]dst- a pointer to the 8-bit integer array with output tensor.
[in]dstScale- an output quantization scale.
[in]dstZero- an output quantization zero.
[in]format- a format of (input/output) tensors.