Home
last modified time | relevance | path

Searched refs:pad_width (Results 1 – 25 of 42) sorted by relevance

12

/external/tensorflow/tensorflow/core/kernels/neon/
Ddepthwiseconv_float.h427 const float* input_data, int pad_width,
457 out_x_loop_start_unclampled = (pad_width - filter_x + 1) / 2;
459 (pad_width + input_width - filter_x + 1) / 2;
461 out_x_loop_start_unclampled = (pad_width - filter_x + 3) / 4;
463 (pad_width + input_width - filter_x + 3) / 4;
466 (pad_width - filter_x + stride - 1) / stride;
468 (pad_width + input_width - filter_x + stride - 1) / stride;
471 out_x_loop_start_unclampled = pad_width - filter_x;
472 out_x_loop_end_unclampled = pad_width + input_width - filter_x;
483 const int in_x_origin = (out_x_loop_start * stride) - pad_width + filter_x;
[all …]
/external/tensorflow/tensorflow/core/kernels/
Dstring_ngrams_op.cc50 int pad_width = get_pad_width(ngram_width); in get_num_ngrams() local
51 return std::max(0, ((length + 2 * pad_width) - ngram_width) + 1); in get_num_ngrams()
135 int pad_width = get_pad_width(ngram_width); in CreateNgrams() local
136 int left_padding = std::max(0, pad_width - ngram_index); in CreateNgrams()
138 std::max(0, pad_width - (num_ngrams - (ngram_index + 1))); in CreateNgrams()
140 int data_start_index = left_padding > 0 ? 0 : ngram_index - pad_width; in CreateNgrams()
Ddepthwise_conv_op_gpu.h102 const int pad_width = args.pad_cols;
120 const int input_col_start = out_col * stride - pad_width;
210 const int pad_width = args.pad_cols;
229 const int pad_offset = pad_height * tile_width + pad_width;
349 const int pad_width = args.pad_cols;
407 const int input_col_start = out_col * stride - pad_width;
501 const int pad_width = args.pad_cols;
521 const int pad_offset = pad_height * tile_width + pad_width;
822 const int pad_width = args.pad_cols;
841 tf_max(0, (in_col - filter_width + pad_width + stride) / stride);
[all …]
/external/tensorflow/tensorflow/lite/kernels/internal/reference/
Dlegacy_reference_ops.h46 int pad_width, int pad_height, int depth_multiplier, in DepthwiseConv() argument
53 op_params.padding_values.width = pad_width; in DepthwiseConv()
71 int stride_width, int stride_height, int pad_width, in DepthwiseConv() argument
77 bias_dims, stride_width, stride_height, 1, 1, pad_width, in DepthwiseConv()
87 int stride_width, int stride_height, int pad_width, in DepthwiseConv() argument
93 bias_dims, stride_width, stride_height, pad_width, pad_height, in DepthwiseConv()
103 int pad_width, int pad_height, int depth_multiplier, in DepthwiseConv() argument
106 bias_dims, stride, stride, pad_width, pad_height, in DepthwiseConv()
116 int pad_width, int pad_height, int depth_multiplier, in DepthwiseConv() argument
124 op_params.padding_values.width = pad_width; in DepthwiseConv()
[all …]
Dconv.h38 const int pad_width = params.padding_values.width; in Conv() local
64 const int in_x_origin = (out_x * stride_width) - pad_width; in Conv()
114 const int pad_width = params.padding_values.width; in Conv() local
144 const int in_x_origin = (out_x * stride_width) - pad_width; in Conv()
198 const int pad_width = params.padding_values.width; in HybridConvPerChannel() local
221 const int in_x_origin = (out_x * stride_width) - pad_width; in HybridConvPerChannel()
Ddepthwiseconv_uint8.h103 const int pad_width = params.padding_values.width; in Run() local
136 const int in_x_origin = (out_x * stride_width) - pad_width; in Run()
189 const int pad_width = params.padding_values.width; in RunPerChannel() local
223 const int in_x_origin = (out_x * stride_width) - pad_width; in RunPerChannel()
Ddepthwiseconv_float.h35 const int pad_width = params.padding_values.width; in DepthwiseConv() local
62 const int in_x_origin = (out_x * stride_width) - pad_width; in DepthwiseConv()
/external/tensorflow/tensorflow/lite/kernels/internal/
Ddepthwiseconv_per_channel_quantized_test.cc50 const int pad_width = params.padding_values.width; in PickOutputMultiplier() local
73 const int in_x_origin = (out_x * stride_width) - pad_width; in PickOutputMultiplier()
194 RuntimeShape* output_shape_inference, int* pad_width, int* pad_height, in GenerateValidShapeConfigurations() argument
215 output_shape_inference, pad_width, pad_height)); in GenerateValidShapeConfigurations()
222 dilation_width_factor, dilation_height_factor, *pad_width, *pad_height, in GenerateValidShapeConfigurations()
243 int pad_width, pad_height; in TryTestOneDepthwiseConv3x3Filter() local
254 &output_shape_inference, &pad_width, &pad_height, &stride); in TryTestOneDepthwiseConv3x3Filter()
276 params.padding_values.width = pad_width; in TryTestOneDepthwiseConv3x3Filter()
306 dilation_width_factor, dilation_height_factor, pad_width, pad_height, in TryTestOneDepthwiseConv3x3Filter()
Ddepthwiseconv_float_test.cc106 int pad_width, pad_height; in TryTestOneDepthwiseConv() local
112 &output_shape_inference, &pad_width, &pad_height)) { in TryTestOneDepthwiseConv()
132 op_params.padding_values.width = pad_width; in TryTestOneDepthwiseConv()
Ddepthwiseconv_quantized_test.cc174 const int pad_width = params.padding_values.width; in DispatchDepthwiseConvImpl() local
185 dilation_width_factor, dilation_height_factor, pad_width, in DispatchDepthwiseConvImpl()
380 const int pad_width = params.padding_values.width; in DispatchDepthwiseConvImpl() local
391 dilation_width_factor, dilation_height_factor, pad_width, in DispatchDepthwiseConvImpl()
580 PaddingType padding_type, int pad_width, int pad_height, in TestOneDepthwiseConvWithGivenOutputShift() argument
594 op_params.padding_values.width = pad_width; in TestOneDepthwiseConvWithGivenOutputShift()
717 PaddingType padding_type, int pad_width, int pad_height, in TestOneDepthwiseConvBisectOutputShift() argument
732 padding_type, pad_width, pad_height, depth_multiplier, output_offset, in TestOneDepthwiseConvBisectOutputShift()
760 pad_width, pad_height, depth_multiplier, output_offset, output_multiplier, in TestOneDepthwiseConvBisectOutputShift()
776 PaddingType padding_type, int pad_width, int pad_height, in TestOneDepthwiseConv() argument
[all …]
Dtest_util.cc27 int* pad_width, int* pad_height) { in ComputeConvSizes() argument
59 *pad_width = std::max( in ComputeConvSizes()
/external/tensorflow/tensorflow/lite/kernels/internal/optimized/
Dim2col_utils.h28 int pad_width, int pad_height, in ExtractPatchIntoBufferColumn() argument
42 const int iw_ungated_start = w * stride_width - pad_width; in ExtractPatchIntoBufferColumn()
123 const int pad_width = params.padding_values.width; in DilatedIm2col() local
161 const int in_x_origin = (out_x * stride_width) - pad_width; in DilatedIm2col()
204 const int pad_width = params.padding_values.width; in Im2col() local
224 pad_width, pad_height, input_width, input_height, input_depth, in Im2col()
240 const int pad_width = params.padding_values.width; in Im2col() local
262 pad_width, pad_height, input_width, input_height, input_depth, in Im2col()
Ddepthwiseconv_float.h766 const float* input_data, int pad_width,
795 (pad_width - dilation_factor * filter_x + 1) / 2;
797 (pad_width + input_width - dilation_factor * filter_x + 1) / 2;
800 (pad_width - dilation_factor * filter_x + 3) / 4;
802 (pad_width + input_width - dilation_factor * filter_x + 3) / 4;
805 (pad_width - dilation_factor * filter_x + stride - 1) / stride;
806 out_x_loop_end_unclampled = (pad_width + input_width -
811 out_x_loop_start_unclampled = pad_width - dilation_factor * filter_x;
813 pad_width + input_width - dilation_factor * filter_x;
825 (out_x_loop_start * stride) - pad_width + dilation_factor * filter_x;
[all …]
Dmultithreaded_conv.h91 int stride_cols, int pad_width, int pad_height, in operator()
109 pad_width == 0 && pad_height == 0) { in operator()
152 const int pad_width = params.padding_values.width; in Conv() local
172 output_depth, stride_height, stride_width, pad_height, pad_width, in Conv()
Dlegacy_optimized_ops.h144 int pad_width, int pad_height, int depth_multiplier, in DepthwiseConv() argument
151 op_params.padding_values.width = pad_width; in DepthwiseConv()
174 int stride_width, int stride_height, int pad_width, in DepthwiseConv() argument
180 bias_dims, stride_width, stride_height, 1, 1, pad_width, in DepthwiseConv()
190 int stride_width, int stride_height, int pad_width, in DepthwiseConv() argument
196 bias_dims, stride_width, stride_height, pad_width, pad_height, in DepthwiseConv()
206 int pad_width, int pad_height, int depth_multiplier, in DepthwiseConv() argument
209 bias_dims, stride, stride, pad_width, pad_height, in DepthwiseConv()
242 const int pad_width = params.padding_values.width; in LegacyDepthwiseConvWithRounding() local
250 dilation_width_factor, dilation_height_factor, pad_width, pad_height, in LegacyDepthwiseConvWithRounding()
[all …]
Ddepthwiseconv_3x3_filter_common.h446 int32 dilation_height_factor, int32 pad_width, int32 pad_height,
462 (stride_width == stride_height) && (pad_width == 0 || pad_width == 1) &&
463 (pad_height == 0 || pad_height == 1) && (pad_width == pad_height) &&
485 const int32 in_x_origin = (out_x * stride_width) - pad_width;
493 if (pad_width == 0 && pad_height == 0) {
Ddepthwiseconv_uint8.h1475 int pad_width, int depth_multiplier,
1504 (pad_width - dilation_factor * filter_x + 1) / 2;
1506 (pad_width + input_width - dilation_factor * filter_x + 1) / 2;
1509 (pad_width - dilation_factor * filter_x + 3) / 4;
1511 (pad_width + input_width - dilation_factor * filter_x + 3) / 4;
1514 (pad_width - dilation_factor * filter_x + stride - 1) / stride;
1515 out_x_loop_end_unclampled = (pad_width + input_width -
1520 out_x_loop_start_unclampled = pad_width - dilation_factor * filter_x;
1522 pad_width + input_width - dilation_factor * filter_x;
1534 (out_x_loop_start * stride) - pad_width + dilation_factor * filter_x;
[all …]
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_StringNGrams.pbtxt44 pad_width != 0.
51 pad_width != 0.
55 name: "pad_width"
59 regardless of this value. If `pad_width=-1`, then add `max(ngram_widths)-1`
/external/tensorflow/tensorflow/lite/kernels/internal/reference/integer_ops/
Ddepthwise_conv.h35 const int pad_width = params.padding_values.width; in DepthwiseConvPerChannel() local
67 const int in_x_origin = (out_x * stride_width) - pad_width; in DepthwiseConvPerChannel()
133 const int pad_width = params.padding_values.width; in DepthwiseConvHybridPerChannel() local
162 const int in_x_origin = (out_x * stride_width) - pad_width; in DepthwiseConvHybridPerChannel()
Dconv.h37 const int pad_width = params.padding_values.width; in ConvPerChannel() local
68 const int in_x_origin = (out_x * stride_width) - pad_width; in ConvPerChannel()
Dtranspose_conv.h33 const int pad_width = params.padding_values.width; in TransposeConv() local
67 const int out_x_origin = (in_x * stride_width) - pad_width; in TransposeConv()
/external/tensorflow/tensorflow/lite/kernels/internal/optimized/integer_ops/
Ddepthwise_conv.h1419 int pad_width, int depth_multiplier,
1448 (pad_width - dilation_factor * filter_x + 1) / 2;
1450 (pad_width + input_width - dilation_factor * filter_x + 1) / 2;
1453 (pad_width - dilation_factor * filter_x + 3) / 4;
1455 (pad_width + input_width - dilation_factor * filter_x + 3) / 4;
1458 (pad_width - dilation_factor * filter_x + stride - 1) / stride;
1459 out_x_loop_end_unclampled = (pad_width + input_width -
1464 out_x_loop_start_unclampled = pad_width - dilation_factor * filter_x;
1466 pad_width + input_width - dilation_factor * filter_x;
1478 (out_x_loop_start * stride) - pad_width + dilation_factor * filter_x;
[all …]
Ddepthwise_conv_hybrid.h51 const int pad_width = params.padding_values.width; in DepthwiseConvHybridGeneral() local
199 -input_offset, pad_width, depth_multiplier, filter_width, in DepthwiseConvHybridGeneral()
287 const int pad_width = params.padding_values.width; in DepthwiseConvHybridWithRounding() local
295 dilation_width_factor, dilation_height_factor, pad_width, pad_height, in DepthwiseConvHybridWithRounding()
Ddepthwise_conv_hybrid_3x3_filter.h3056 const int32 pad_width = rt_params.padding_values.width;
3090 TFLITE_DCHECK(pad_width == 0 || pad_width == 1);
3091 TFLITE_DCHECK(pad_width == pad_height);
3155 if (pad_width == 1 && pad_height == 1) {
3169 const int in_x = (out_x * stride_width) - pad_width;
/external/tensorflow/tensorflow/core/ops/compat/ops_history_v1/
DStringNGrams.pbtxt37 name: "pad_width"

12