Home
last modified time | relevance | path

Searched refs:bias_scale (Results 1 – 15 of 15) sorted by relevance

/external/tensorflow/tensorflow/lite/micro/kernels/arc_mli/
Dfully_connected_slicing_test.cc42 const int32_t* bias_data, const float bias_scale, in TestFullyConnectedQuantized() argument
60 CreateQuantized32Tensor(bias_data, bias_dims, "bias_tensor", bias_scale), in TestFullyConnectedQuantized()
130 const float bias_scale = 1.0f; in TF_LITE_MICRO_TEST() local
150 bias_scale, expected_output_data, output_dims_data, output_min, in TF_LITE_MICRO_TEST()
159 const float bias_scale = 1.0f; in TF_LITE_MICRO_TEST() local
185 bias_dims_data_local, bias_data_local, bias_scale, expected_output_data, in TF_LITE_MICRO_TEST()
196 const float bias_scale = 1.0f; in TF_LITE_MICRO_TEST() local
221 bias_dims_data_2, bias_data_2, bias_scale, expected_output_data_2, in TF_LITE_MICRO_TEST()
231 const float bias_scale = 1.0f; in TF_LITE_MICRO_TEST() local
257 bias_dims_data_local_2, bias_data_local_2, bias_scale, in TF_LITE_MICRO_TEST()
[all …]
/external/tensorflow/tensorflow/lite/delegates/hexagon/builders/tests/
Dtranspose_conv_test.cc43 std::vector<float> bias_scale( in QuantizedTransposeConvOpModel() local
49 bias_scale[i] = in QuantizedTransposeConvOpModel()
60 /*per_channel_quantization_scales=*/bias_scale, in QuantizedTransposeConvOpModel()
66 auto bias_scale = GetScale(input_) * GetScale(filter_); in QuantizedTransposeConvOpModel() local
67 TensorData bias{TensorType_INT32, {bias_size}, 0, 0, bias_scale}; in QuantizedTransposeConvOpModel()
Dconv_test.cc47 std::vector<float> bias_scale( in QuantizedConvolutionOpModel() local
53 bias_scale[i] = input.scale * filter.per_channel_quantization_scales[i]; in QuantizedConvolutionOpModel()
63 /*per_channel_quantization_scales=*/bias_scale, in QuantizedConvolutionOpModel()
69 auto bias_scale = GetScale(input_) * GetScale(filter_); in QuantizedConvolutionOpModel() local
70 TensorData bias{TensorType_INT32, {bias_size}, 0, 0, bias_scale}; in QuantizedConvolutionOpModel()
Dmatmul_test.cc44 auto bias_scale = GetScale(input_) * GetScale(weights_); in FullyConnectedOpModel() local
45 TensorData bias{TensorType_INT32, {units_}, 0, 0, bias_scale}; in FullyConnectedOpModel()
/external/tensorflow/tensorflow/lite/kernels/
Ddepthwise_conv_hybrid_test.cc71 std::vector<float> bias_scale( in BaseDepthwiseConvolutionOpModel() local
77 bias_scale[i] = in BaseDepthwiseConvolutionOpModel()
88 /*per_channel_quantization_scales=*/bias_scale, in BaseDepthwiseConvolutionOpModel()
94 auto bias_scale = GetScale(input_) * GetScale(filter_); in BaseDepthwiseConvolutionOpModel() local
95 TensorData bias{TensorType_INT32, {bias_size}, 0, 0, bias_scale}; in BaseDepthwiseConvolutionOpModel()
Dtranspose_conv_test.cc595 std::vector<float> bias_scale( in BaseTransposeConvBiasOpModel() local
601 bias_scale[i] = input.scale * filter.per_channel_quantization_scales[i]; in BaseTransposeConvBiasOpModel()
611 /*per_channel_quantization_scales=*/bias_scale, in BaseTransposeConvBiasOpModel()
617 auto bias_scale = GetScale(input_) * GetScale(filter_); in BaseTransposeConvBiasOpModel() local
618 TensorData bias{TensorType_INT32, {bias_size}, 0, 0, bias_scale}; in BaseTransposeConvBiasOpModel()
Dconv_test.cc78 std::vector<float> bias_scale( local
84 bias_scale[i] =
100 /*per_channel_quantization_scales=*/bias_scale,
106 auto bias_scale = GetScale(input_) * GetScale(filter_); local
107 TensorData bias{TensorType_INT32, {bias_size}, 0, 0, bias_scale};
Ddepthwise_conv_test.cc72 std::vector<float> bias_scale( in BaseDepthwiseConvolutionOpModel() local
78 bias_scale[i] = in BaseDepthwiseConvolutionOpModel()
93 /*per_channel_quantization_scales=*/bias_scale, in BaseDepthwiseConvolutionOpModel()
99 auto bias_scale = GetScale(input_) * GetScale(filter_); in BaseDepthwiseConvolutionOpModel() local
100 TensorData bias{TensorType_INT32, {bias_size}, 0, 0, bias_scale}; in BaseDepthwiseConvolutionOpModel()
Dkernel_util.cc289 const double bias_scale = static_cast<double>(bias->params.scale); in GetQuantizedConvolutionMultipler() local
307 const double scale_diff = std::abs(input_product_scale - bias_scale); in GetQuantizedConvolutionMultipler()
Dfully_connected_test.cc168 auto bias_scale = GetScale(input_) * GetScale(weights_); local
170 TensorData bias{TensorType_INT64, {units_}, 0, 0, bias_scale};
173 TensorData bias{TensorType_INT32, {units_}, 0, 0, bias_scale};
/external/tensorflow/tensorflow/lite/delegates/nnapi/
Dnnapi_delegate_signed_quantization_test.cc255 std::vector<float> bias_scale( local
261 bias_scale[i] =
277 /*per_channel_quantization_scales=*/bias_scale,
283 auto bias_scale = GetScale(input_) * GetScale(filter_); local
284 TensorData bias{TensorType_INT32, {bias_size}, 0, 0, bias_scale};
Dnnapi_delegate_test.cc608 auto bias_scale = GetScale(input_) * GetScale(filter_); in ConvolutionOpModel() local
609 TensorData bias{TensorType_INT32, {bias_size}, 0, 0, bias_scale}; in ConvolutionOpModel()
1071 auto bias_scale = GetScale(input_) * GetScale(filter_); in DepthwiseConvolutionOpModel() local
1072 TensorData bias{TensorType_INT32, {bias_size}, 0, 0, bias_scale}; in DepthwiseConvolutionOpModel()
1204 auto bias_scale = GetScale(input_) * GetScale(weights_); in FullyConnectedOpModel() local
1205 TensorData bias{TensorType_INT32, {units}, 0, 0, bias_scale}; in FullyConnectedOpModel()
/external/tensorflow/tensorflow/lite/micro/
Dtest_helpers.cc1005 float bias_scale = input_scale * weights_scale; in CreateQuantizedBiasTensor() local
1006 tflite::SymmetricQuantize(data, quantized, ElementCount(*dims), bias_scale); in CreateQuantizedBiasTensor()
1012 CreateQuantizedTensor(quantized, dims, bias_scale, 0, is_variable); in CreateQuantizedBiasTensor()
/external/tensorflow/tensorflow/lite/kernels/internal/reference/
Dportable_tensor_utils.cc473 const float bias_scale = std::pow(two, -10) * layer_norm_scale; in PortableApplyLayerNormFloat() local
498 bias[i] * bias_scale; in PortableApplyLayerNormFloat()
/external/tensorflow/tensorflow/lite/tools/optimize/
Dquantize_model_test.cc664 const float bias_scale = in TEST_F() local
666 auto dequantized_value = bias_values[i] * bias_scale; in TEST_F()