Home
last modified time | relevance | path

Searched refs:scales_inv (Results 1 – 5 of 5) sorted by relevance

/external/tensorflow/tensorflow/lite/tools/optimize/
Dquantization_utils.h71 const std::vector<float>& scales_inv,
Dquantization_utils.cc371 const std::vector<float>& scales_inv, in SymmetricPerChannelQuantizeValues() argument
387 static_cast<int32_t>(TfLiteRound(val * scales_inv[channel_idx])); in SymmetricPerChannelQuantizeValues()
Dquantization_utils_test.cc269 const std::vector<float> scales_inv = {2, 0.5, 3}; in TEST_F() local
277 SymmetricPerChannelQuantizeValues(input.data(), scales_inv, dimension, in TEST_F()
/external/tensorflow/tensorflow/compiler/mlir/lite/quantization/
Dquantization_utils.cc481 std::vector<float> scales_inv; in QuantizeLegacy() local
487 std::back_inserter(scales_inv), in QuantizeLegacy()
491 real_values.data(), scales_inv, dimension, in QuantizeLegacy()
/external/tensorflow/tensorflow/lite/kernels/
Dtest_util.h416 std::vector<float> scales_inv(num_channel); in PerChannelSymmetricQuantizeAndPopulate()
420 scales_inv[i] = 1.0f / scale; in PerChannelSymmetricQuantizeAndPopulate()
423 input_data.data(), scales_inv, shape, channel_index, &quantized_output); in PerChannelSymmetricQuantizeAndPopulate()