Skip to main content

build_softmax

Function build_softmax 

Source
pub fn build_softmax(input_scale: f64, beta: f64) -> QSoftmax
Expand description

QSoftmax parameters for an input tensor of scale input_scale and a softmax of beta (1.0 for a plain softmax), computed as TFLite Micro does for an int8 softmax (PreprocessSoftmaxScaling with 5 integer bits, then CalculateInputRadius; C++ buildQSoftmaxFixedPointParams).