Searched refs:scales_inv (Results 1 – 5 of 5) sorted by relevance
/external/tensorflow/tensorflow/lite/tools/optimize/ |
D | quantization_utils.h | 71 const std::vector<float>& scales_inv,
|
D | quantization_utils.cc | 371 const std::vector<float>& scales_inv, in SymmetricPerChannelQuantizeValues() argument 387 static_cast<int32_t>(TfLiteRound(val * scales_inv[channel_idx])); in SymmetricPerChannelQuantizeValues()
|
D | quantization_utils_test.cc | 269 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/ |
D | quantization_utils.cc | 481 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/ |
D | test_util.h | 416 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()
|