Expand description
Activation functions for quantized tensors.
Constants§
- SIGMOID_
TABLE_ UINT16 - Sigmoid and Tanh 256-element lookup table (Q0.16 format).
Functions§
- activation_
s8 - In-place generic activation clipping for int8 buffer (
data[i] = clamp(data[i], act.min, act.max)). - activation_
s16 - In-place generic activation clipping for int16 buffer.
- leaky_
relu_ s8 - LeakyReLU activation for int8 buffer.
- relu6_
s8 - In-place ReLU6 for int8 buffer (
data[i] = min(max(data[i], 0), 6)). - relu_s8
- In-place ReLU for int8 buffer (
data[i] = max(data[i], 0)). - relu_
s16 - In-place ReLU for int16 buffer.
- sigmoid_
s8 - Sigmoid activation for int8 tensors using direct lookup table.
- sigmoid_
s16 - Sigmoid activation for int16 tensors.
- tanh_s8
- Tanh activation for int8 tensors using lookup table.
- tanh_
s16 - Tanh activation for int16 tensors.