Home
last modified time | relevance | path

Searched refs:weight_scales (Results 1 – 12 of 12) sorted by relevance

/external/tensorflow/tensorflow/lite/micro/
Dtesting_helpers_test.cc45 float weight_scales[] = {0.5, 1, 2, 4}; in TF_LITE_MICRO_TEST() local
59 pre_quantized, quantized, dims, input_scale, weight_scales, scales, in TF_LITE_MICRO_TEST()
65 TF_LITE_MICRO_EXPECT_EQ(scales[i + 1], input_scale * weight_scales[i]); in TF_LITE_MICRO_TEST()
Dtest_helpers.h211 float input_scale, float* weight_scales, float* scales, int* zero_points,
Dtest_helpers.cc1020 float input_scale, float* weight_scales, float* scales, int* zero_points, in CreatePerChannelQuantizedBiasTensor() argument
1030 scales_array[i] = input_scale * weight_scales[i]; in CreatePerChannelQuantizedBiasTensor()
/external/tensorflow/tensorflow/lite/tools/optimize/
Dquantization_utils.cc257 std::vector<float> weight_scales(channel_dim_size); in AdjustWeightsForBiasScale() local
259 quant_params, &weight_scales, error_reporter)); in AdjustWeightsForBiasScale()
266 0.5 * input_scale * weight_scales[i] * kScale) { in AdjustWeightsForBiasScale()
279 if (bias_half_range / kScale >= 0.5 * input_scale * weight_scales[0]) { in AdjustWeightsForBiasScale()
658 const float* weight_scales, in SymmetricPerChannelBiasQuantize() argument
664 scales[i] = input_scale * weight_scales[i]; in SymmetricPerChannelBiasQuantize()
689 const float* weight_scales, int number_of_dimension,
694 const float* weight_scales, int number_of_dimension,
Dquantize_model.cc153 std::vector<float> weight_scales = weight_tensor->quantization->scale; in QuantizeBias() local
170 if (weight_scales.size() != channel_dim_size) { in QuantizeBias()
173 weight_scales.size()); in QuantizeBias()
179 weight_scales.data(), channel_dim_size, error_reporter); in QuantizeBias()
183 weight_scales.data(), channel_dim_size, error_reporter); in QuantizeBias()
186 if (weight_scales.size() != 1) { in QuantizeBias()
190 weight_scales.size()); in QuantizeBias()
196 input_tensor->quantization->scale[0] * weight_scales[0], in QuantizeBias()
201 input_tensor->quantization->scale[0] * weight_scales[0], in QuantizeBias()
Dquantization_utils.h130 const float* weight_scales,
Dquantization_utils_test.cc786 const std::vector<float> weight_scales = {0.5, 1.0}; in TEST_F() local
805 weight_scales.data(), 2, &error_reporter_), in TEST_F()
/external/tensorflow/tensorflow/stream_executor/cuda/
Dcuda_dnn.h417 const DeviceMemory<float>& weight_scales, in DoMatMulQuantized() argument
427 const DeviceMemory<float>& weight_scales, in DoMatMulQuantized() argument
/external/tensorflow/tensorflow/stream_executor/rocm/
Drocm_dnn.h441 const DeviceMemory<float>& weight_scales, in DoMatMulQuantized() argument
451 const DeviceMemory<float>& weight_scales, in DoMatMulQuantized() argument
/external/tensorflow/tensorflow/stream_executor/
Ddnn.h1577 const DeviceMemory<float>& weight_scales,
1589 const DeviceMemory<float>& weight_scales,
Dstream.cc765 const DeviceMemory<float> &weight_scales, in ThenMatMulQuantized() argument
769 VLOG_CALL(PARAM(input_data), PARAM(weights), PARAM(weight_scales), in ThenMatMulQuantized()
774 CheckError(dnn->DoMatMulQuantized(this, input_data, weights, weight_scales, in ThenMatMulQuantized()
785 const DeviceMemory<float> &weight_scales, in ThenMatMulQuantized() argument
789 VLOG_CALL(PARAM(input_data), PARAM(weights), PARAM(weight_scales), in ThenMatMulQuantized()
794 CheckError(dnn->DoMatMulQuantized(this, input_data, weights, weight_scales, in ThenMatMulQuantized()
Dstream.h523 const DeviceMemory<float> &weight_scales,
530 const DeviceMemory<float> &weight_scales,