Searched refs:kernel_scale (Results 1 – 7 of 7) sorted by relevance
/external/XNNPACK/src/operators/ |
D | fully-connected-nc.c | 247 float kernel_scale, in xnn_create_fully_connected_nc_qu8() argument 264 if (kernel_scale <= 0.0f || !isnormal(kernel_scale)) { in xnn_create_fully_connected_nc_qu8() 267 xnn_operator_type_to_string(xnn_operator_type_fully_connected_nc_qu8), kernel_scale); in xnn_create_fully_connected_nc_qu8() 285 const float requantization_scale = input_scale * kernel_scale / output_scale; in xnn_create_fully_connected_nc_qu8() 291 input_scale, kernel_scale, output_scale, requantization_scale); in xnn_create_fully_connected_nc_qu8()
|
D | convolution-nhwc.c | 437 float kernel_scale, in xnn_create_convolution2d_nhwc_qu8() argument 454 if (kernel_scale <= 0.0f || !isnormal(kernel_scale)) { in xnn_create_convolution2d_nhwc_qu8() 457 xnn_operator_type_to_string(xnn_operator_type_convolution_nhwc_qu8), kernel_scale); in xnn_create_convolution2d_nhwc_qu8() 475 const float requantization_scale = input_scale * kernel_scale / output_scale; in xnn_create_convolution2d_nhwc_qu8() 481 input_scale, kernel_scale, output_scale, requantization_scale); in xnn_create_convolution2d_nhwc_qu8() 534 float kernel_scale, in xnn_create_convolution2d_nhwc_qs8() argument 551 if (kernel_scale <= 0.0f || !isnormal(kernel_scale)) { in xnn_create_convolution2d_nhwc_qs8() 554 xnn_operator_type_to_string(xnn_operator_type_convolution_nhwc_qs8), kernel_scale); in xnn_create_convolution2d_nhwc_qs8() 572 const float requantization_scale = input_scale * kernel_scale / output_scale; in xnn_create_convolution2d_nhwc_qs8() 578 input_scale, kernel_scale, output_scale, requantization_scale); in xnn_create_convolution2d_nhwc_qs8()
|
D | deconvolution-nhwc.c | 320 float kernel_scale, in xnn_create_deconvolution2d_nhwc_qu8() argument 337 if (kernel_scale <= 0.0f || !isnormal(kernel_scale)) { in xnn_create_deconvolution2d_nhwc_qu8() 340 xnn_operator_type_to_string(xnn_operator_type_deconvolution_nhwc_qu8), kernel_scale); in xnn_create_deconvolution2d_nhwc_qu8() 358 const float requantization_scale = input_scale * kernel_scale / output_scale; in xnn_create_deconvolution2d_nhwc_qu8() 364 input_scale, kernel_scale, output_scale, requantization_scale); in xnn_create_deconvolution2d_nhwc_qu8()
|
/external/tensorflow/tensorflow/core/kernels/image/ |
D | scale_and_translate_op_test.cc | 95 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()
|
D | scale_and_translate_op.cc | 62 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/tensorflow/tensorflow/python/keras/layers/ |
D | kernelized.py | 212 self.kernel_scale = self.add_weight( 224 kernel = (1.0 / self.kernel_scale) * self.unscaled_kernel
|
/external/XNNPACK/include/ |
D | xnnpack.h | 1947 float kernel_scale, 2040 float kernel_scale, 2078 float kernel_scale, 2107 float kernel_scale,
|