Home
last modified time | relevance | path

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

/external/XNNPACK/src/operators/
Dfully-connected-nc.c433 float kernel_scale, in xnn_create_fully_connected_nc_qs8() argument
451 if (kernel_scale <= 0.0f || !isnormal(kernel_scale)) { in xnn_create_fully_connected_nc_qs8()
454 xnn_operator_type_to_string(xnn_operator_type_fully_connected_nc_qs8), kernel_scale); in xnn_create_fully_connected_nc_qs8()
472 const float requantization_scale = input_scale * kernel_scale / output_scale; in xnn_create_fully_connected_nc_qs8()
478 input_scale, kernel_scale, output_scale, requantization_scale); in xnn_create_fully_connected_nc_qs8()
514 float kernel_scale, in xnn_create_fully_connected_nc_qu8() argument
532 if (kernel_scale <= 0.0f || !isnormal(kernel_scale)) { in xnn_create_fully_connected_nc_qu8()
535 xnn_operator_type_to_string(xnn_operator_type_fully_connected_nc_qu8), kernel_scale); in xnn_create_fully_connected_nc_qu8()
553 const float requantization_scale = input_scale * kernel_scale / output_scale; in xnn_create_fully_connected_nc_qu8()
559 input_scale, kernel_scale, output_scale, requantization_scale); in xnn_create_fully_connected_nc_qu8()
Dconvolution-nhwc.c672 float kernel_scale, in xnn_create_convolution2d_nhwc_qu8() argument
690 if (kernel_scale <= 0.0f || !isnormal(kernel_scale)) { in xnn_create_convolution2d_nhwc_qu8()
693 xnn_operator_type_to_string(xnn_operator_type_convolution_nhwc_qu8), kernel_scale); in xnn_create_convolution2d_nhwc_qu8()
711 const float requantization_scale = input_scale * kernel_scale / output_scale; in xnn_create_convolution2d_nhwc_qu8()
717 input_scale, kernel_scale, output_scale, requantization_scale); in xnn_create_convolution2d_nhwc_qu8()
790 float kernel_scale, in xnn_create_convolution2d_nhwc_qs8() argument
808 if (kernel_scale <= 0.0f || !isnormal(kernel_scale)) { in xnn_create_convolution2d_nhwc_qs8()
811 xnn_operator_type_to_string(xnn_operator_type_convolution_nhwc_qs8), kernel_scale); in xnn_create_convolution2d_nhwc_qs8()
829 const float requantization_scale = input_scale * kernel_scale / output_scale; in xnn_create_convolution2d_nhwc_qs8()
835 input_scale, kernel_scale, output_scale, requantization_scale); in xnn_create_convolution2d_nhwc_qs8()
[all …]
Ddeconvolution-nhwc.c306 float kernel_scale, in xnn_create_deconvolution2d_nhwc_qs8() argument
324 if (kernel_scale <= 0.0f || !isnormal(kernel_scale)) { in xnn_create_deconvolution2d_nhwc_qs8()
327 xnn_operator_type_to_string(xnn_operator_type_deconvolution_nhwc_qs8), kernel_scale); in xnn_create_deconvolution2d_nhwc_qs8()
345 const float requantization_scale = input_scale * kernel_scale / output_scale; in xnn_create_deconvolution2d_nhwc_qs8()
351 input_scale, kernel_scale, output_scale, requantization_scale); in xnn_create_deconvolution2d_nhwc_qs8()
403 float kernel_scale, in xnn_create_deconvolution2d_nhwc_qu8() argument
421 if (kernel_scale <= 0.0f || !isnormal(kernel_scale)) { in xnn_create_deconvolution2d_nhwc_qu8()
424 xnn_operator_type_to_string(xnn_operator_type_deconvolution_nhwc_qu8), kernel_scale); in xnn_create_deconvolution2d_nhwc_qu8()
442 const float requantization_scale = input_scale * kernel_scale / output_scale; in xnn_create_deconvolution2d_nhwc_qu8()
448 input_scale, kernel_scale, output_scale, requantization_scale); in xnn_create_deconvolution2d_nhwc_qu8()
/external/tensorflow/tensorflow/core/kernels/image/
Dscale_and_translate_op_test.cc95 const Vector2f kernel_scale(antialias ? std::max(scale.x(), 1.0f) : 1.0, in Sample() local
104 std::ceil(sample_f.y() - kernel.Radius() * kernel_scale.y() - 0.5f))); in Sample()
108 sample_f.y() + kernel.Radius() * kernel_scale.y() - 0.5f))) + in Sample()
113 std::ceil(sample_f.x() - kernel.Radius() * kernel_scale.x() - 0.5f))); in Sample()
118 sample_f.x() + kernel.Radius() * kernel_scale.x() - 0.5f))) + in Sample()
126 const Vector2f one_over_kernel_scale(1.0f / kernel_scale.x(), in Sample()
127 1.0f / kernel_scale.y()); in Sample()
Dscale_and_translate_op.cc62 const float kernel_scale = antialias ? std::max(inv_scale, 1.0f) : 1.0f; in ComputeSpansCore() local
64 2 * static_cast<int>(std::ceil(kernel.Radius() * kernel_scale)) + 1, in ComputeSpansCore()
79 const float one_over_kernel_scale = 1.0f / kernel_scale; in ComputeSpansCore()
93 std::ceil(sample_f - kernel.Radius() * kernel_scale - 0.5f); in ComputeSpansCore()
95 std::floor(sample_f + kernel.Radius() * kernel_scale - 0.5f); in ComputeSpansCore()
/external/XNNPACK/test/
Dfully-connected.cc300 const float kernel_scale = scale_dist(rng); in TEST_F() local
329 …els, output_channels, input_channels, output_channels, input_zero_point, input_scale, kernel_scale, in TEST_F()
362 … subgraph, xnn_datatype_qint8, 0, kernel_scale, kernel_dims.size(), kernel_dims.data(), in TEST_F()
368 … subgraph, xnn_datatype_qint32, 0, kernel_scale, bias_dims.size(), bias_dims.data(), in TEST_F()
410 const float kernel_scale = scale_dist(rng); in TEST_F() local
440 kernel_scale, kernel.data(), bias.data(), output_zero_point, output_scale, quantized_output_min, in TEST_F()
472 … subgraph, xnn_datatype_quint8, 0, kernel_scale, kernel_dims.size(), kernel_dims.data(), in TEST_F()
478 … subgraph, xnn_datatype_qint32, 0, kernel_scale, bias_dims.size(), bias_dims.data(), in TEST_F()
Ddepthwise-convolution-2d.cc126 kernel_scale = scale_dist(this->rng); in QuantizedDepthwiseConvolutionTestBase()
144 float kernel_scale; member in xnnpack::QuantizedDepthwiseConvolutionTestBase
251 … subgraph, xnn_datatype_qint8, 0, kernel_scale, filter_dims.size(), filter_dims.data(), in TEST_F()
259 … subgraph, xnn_datatype_qint32, 0, kernel_scale, bias_dims.size(), bias_dims.data(), bias.data(), in TEST_F()
324 … subgraph, xnn_datatype_quint8, 0, kernel_scale, filter_dims.size(), filter_dims.data(), in TEST_F()
332 … subgraph, xnn_datatype_qint32, 0, kernel_scale, bias_dims.size(), bias_dims.data(), bias.data(), in TEST_F()
649 …input_scale, kernel_scale, filter.data(), bias.data(), output_zero_point, output_scale, quantized_… in TEST_F()
683 … subgraph, xnn_datatype_qint8, kernel_zero_point, kernel_scale, filter_dims.size(), in TEST_F()
691 … subgraph, xnn_datatype_qint32, 0, kernel_scale, bias_dims.size(), bias_dims.data(), bias.data(), in TEST_F()
781 …input_scale, kernel_zero_point, kernel_scale, filter.data(), bias.data(), output_zero_point, outpu… in TEST_F()
[all …]
Ddeconvolution-2d.cc384 const float kernel_scale = scale_dist(rng); in TEST_F() local
436 … group_input_channels, groups * group_output_channels, input_zero_point, input_scale, kernel_scale, in TEST_F()
470 … subgraph, xnn_datatype_qint8, 0, kernel_scale, kernel_dims.size(), kernel_dims.data(), in TEST_F()
476 … subgraph, xnn_datatype_qint32, 0, kernel_scale, bias_dims.size(), bias_dims.data(), in TEST_F()
522 const float kernel_scale = scale_dist(rng); in TEST_F() local
578 kernel_scale, kernel.data(), bias.data(), output_zero_point, output_scale, quantized_output_min, in TEST_F()
611 … subgraph, xnn_datatype_quint8, 0, kernel_scale, kernel_dims.size(), kernel_dims.data(), in TEST_F()
617 … subgraph, xnn_datatype_qint32, 0, kernel_scale, bias_dims.size(), bias_dims.data(), in TEST_F()
Dconvolution-2d.cc575 const float kernel_scale = scale_dist(rng); in TEST_F() local
621 kernel_scale, filter.data(), bias.data(), output_zero_point, output_scale, quantized_output_min, in TEST_F()
653 … subgraph, xnn_datatype_qint8, 0, kernel_scale, filter_dims.size(), filter_dims.data(), in TEST_F()
659 … subgraph, xnn_datatype_qint32, 0, kernel_scale, bias_dims.size(), bias_dims.data(), in TEST_F()
705 const float kernel_scale = scale_dist(rng); in TEST_F() local
753 …kernel_zero_point, kernel_scale, filter.data(), bias.data(), output_zero_point, output_scale, quan… in TEST_F()
785 … subgraph, xnn_datatype_quint8, 0, kernel_scale, filter_dims.size(), filter_dims.data(), in TEST_F()
791 … subgraph, xnn_datatype_qint32, 0, kernel_scale, bias_dims.size(), bias_dims.data(), in TEST_F()
/external/tensorflow/tensorflow/lite/delegates/xnnpack/
Dquantized_depthwise_conv_2d_tester.h196 inline QuantizedDepthwiseConv2DTester& KernelScale(float kernel_scale) { in KernelScale() argument
197 kernel_scale_ = kernel_scale; in KernelScale()
Dquantized_conv_2d_tester.h197 inline QuantizedConv2DTester& KernelScale(float kernel_scale) { in KernelScale() argument
198 kernel_scale_ = kernel_scale; in KernelScale()
/external/XNNPACK/include/
Dxnnpack.h2911 const float* kernel_scale,
2976 float kernel_scale,
3014 float kernel_scale,
3064 float kernel_scale,
3284 float kernel_scale,
3323 float kernel_scale,
3353 float kernel_scale,