Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/lite/tools/optimize/
Dquantization_utils.cc137 const std::vector<float>& scales_inv, in SymmetricPerChannelQuantizeValues() argument
153 static_cast<int32_t>(TfLiteRound(val * scales_inv[channel_idx])); in SymmetricPerChannelQuantizeValues()
Dquantization_utils.h58 const std::vector<float>& scales_inv,
Dquantization_utils_test.cc205 const std::vector<float> scales_inv = {2, 0.5, 3}; in TEST() local
213 SymmetricPerChannelQuantizeValues(input.data(), scales_inv, dimension, in TEST()
/external/tensorflow/tensorflow/lite/kernels/
Dtest_util.h213 std::vector<float> scales_inv(num_channel); in PerChannelSymmetricQuantizeAndPopulate()
215 scales_inv[i] = 1.0f / params->scale->data[i]; in PerChannelSymmetricQuantizeAndPopulate()
218 input_data.data(), scales_inv, shape, channel_index, &quantized_output); in PerChannelSymmetricQuantizeAndPopulate()