Home
last modified time | relevance | path

Searched refs:scaling_factor_inv (Results 1 – 3 of 3) sorted by relevance

/external/tensorflow/tensorflow/lite/tools/optimize/
Dquantization_utils.cc337 const float scaling_factor_inv = in SymmetricQuantizeFloatsToInt16() local
344 static_cast<int32_t>(TfLiteRound(data[i] * scaling_factor_inv)); in SymmetricQuantizeFloatsToInt16()
608 float scaling_factor_inv = in SymmetricBiasQuantize() local
612 tflite::SafeCast<BiasType>(TfLiteRound(data[idx] * scaling_factor_inv)); in SymmetricBiasQuantize()
/external/tensorflow/tensorflow/lite/kernels/internal/reference/
Dportable_tensor_utils.cc62 const float scaling_factor_inv = kScale / range; in PortableSymmetricQuantizeFloats() local
65 static_cast<int32_t>(TfLiteRound(values[i] * scaling_factor_inv)); in PortableSymmetricQuantizeFloats()
110 const float scaling_factor_inv = 1.0 / *scaling_factor; in PortableAsymmetricQuantizeFloats() local
113 TfLiteRound(*offset + values[i] * scaling_factor_inv)); in PortableAsymmetricQuantizeFloats()
/external/tensorflow/tensorflow/lite/kernels/internal/optimized/
Dneon_tensor_utils.cc2311 const float scaling_factor_inv = kScale / range; in NeonSymmetricQuantizeFloats() local
2317 const float32x4_t q_factor_f32x4 = vmovq_n_f32(scaling_factor_inv); in NeonSymmetricQuantizeFloats()
2353 static_cast<int32>(TfLiteRound(scaling_factor_inv * values[i])); in NeonSymmetricQuantizeFloats()
2399 const float scaling_factor_inv = in NeonAsymmetricQuantizeFloats() local
2401 const float32x4_t q_factor_f32x4 = vmovq_n_f32(scaling_factor_inv); in NeonAsymmetricQuantizeFloats()
2436 *offset + TfLiteRound(scaling_factor_inv * values[i])); in NeonAsymmetricQuantizeFloats()