Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/lite/kernels/
Ddepthwise_conv_test.cc61 std::vector<float> bias_scale( in BaseDepthwiseConvolutionOpModel() local
67 bias_scale[i] = in BaseDepthwiseConvolutionOpModel()
78 /*per_channel_scale=*/bias_scale, in BaseDepthwiseConvolutionOpModel()
84 auto bias_scale = GetScale(input_) * GetScale(filter_); in BaseDepthwiseConvolutionOpModel() local
85 TensorData bias{TensorType_INT32, {bias_size}, 0, 0, bias_scale}; in BaseDepthwiseConvolutionOpModel()
Dkernel_util.cc113 const double bias_scale = bias->params.scale; in GetQuantizedConvolutionMultipler() local
118 TF_LITE_ENSURE(context, std::abs(input_product_scale - bias_scale) <= in GetQuantizedConvolutionMultipler()
119 1e-6 * std::min(input_product_scale, bias_scale)); in GetQuantizedConvolutionMultipler()
Dconv_test.cc63 std::vector<float> bias_scale( in BaseConvolutionOpModel() local
69 bias_scale[i] = in BaseConvolutionOpModel()
80 /*per_channel_scale=*/bias_scale, in BaseConvolutionOpModel()
86 auto bias_scale = GetScale(input_) * GetScale(filter_); in BaseConvolutionOpModel() local
87 TensorData bias{TensorType_INT32, {bias_size}, 0, 0, bias_scale}; in BaseConvolutionOpModel()
Dfully_connected_test.cc162 auto bias_scale = GetScale(input_) * GetScale(weights_); local
163 TensorData bias{TensorType_INT32, {units_}, 0, 0, bias_scale};
/external/tensorflow/tensorflow/tools/graph_transforms/
Dfuse_quantized_convolution.cc194 float bias_scale = 255.0 * 127.0 / in FuseQuantizedConvolutionAndRequantize() local
199 p_bias_int32[n] = (int32_t) (p_bias_float[n] * bias_scale); in FuseQuantizedConvolutionAndRequantize()
/external/tensorflow/tensorflow/contrib/fused_conv/python/ops/
Dfused_conv2d_bias_activation_op_test_base.py869 bias_scale = test_param["bias_scale"]
907 minval=-10 * bias_scale,
908 maxval=20 * bias_scale,
/external/tensorflow/tensorflow/lite/delegates/nnapi/
Dnnapi_delegate_test.cc282 auto bias_scale = GetScale(input_) * GetScale(filter_); in ConvolutionOpModel() local
283 TensorData bias{TensorType_INT32, {bias_size}, 0, 0, bias_scale}; in ConvolutionOpModel()
461 auto bias_scale = GetScale(input_) * GetScale(filter_); in DepthwiseConvolutionOpModel() local
462 TensorData bias{TensorType_INT32, {bias_size}, 0, 0, bias_scale}; in DepthwiseConvolutionOpModel()
542 auto bias_scale = GetScale(input_) * GetScale(weights_); in FullyConnectedOpModel() local
543 TensorData bias{TensorType_INT32, {units}, 0, 0, bias_scale}; in FullyConnectedOpModel()
/external/tensorflow/tensorflow/lite/tools/optimize/
Dsubgraph_quantizer_test.cc133 const float bias_scale = in TEST() local
135 auto dequantized_value = bias_values[i] * bias_scale; in TEST()
/external/tensorflow/tensorflow/core/kernels/
Dmkl_conv_ops.cc1647 float bias_scale = 255.0 * 127.0 / in GetBiasHandle() local
1651 scales.push_back(bias_scale); in GetBiasHandle()