/external/tensorflow/tensorflow/lite/micro/kernels/arc_mli/ |
D | fully_connected_slicing_test.cc | 42 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/ |
D | transpose_conv_test.cc | 43 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()
|
D | conv_test.cc | 47 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()
|
D | matmul_test.cc | 44 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/ |
D | depthwise_conv_hybrid_test.cc | 71 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()
|
D | transpose_conv_test.cc | 595 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()
|
D | conv_test.cc | 78 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};
|
D | depthwise_conv_test.cc | 72 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()
|
D | kernel_util.cc | 289 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()
|
D | fully_connected_test.cc | 168 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/ |
D | nnapi_delegate_signed_quantization_test.cc | 255 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};
|
D | nnapi_delegate_test.cc | 608 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/ |
D | test_helpers.cc | 1005 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/ |
D | portable_tensor_utils.cc | 473 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/ |
D | quantize_model_test.cc | 664 const float bias_scale = in TEST_F() local 666 auto dequantized_value = bias_values[i] * bias_scale; in TEST_F()
|