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