Home
last modified time | relevance | path

Searched refs:padding_ (Results 1 – 25 of 53) sorted by relevance

123

/external/tensorflow/tensorflow/core/kernels/
Davgpooling_op.cc76 OP_REQUIRES_OK(context, context->GetAttr("padding", &padding_)); in AvgPoolingOp()
92 padding_, in Compute()
111 SpatialAvgPool<Device, T>(context, output, tensor_in, params, padding_); in Compute()
117 Padding padding_; member in tensorflow::AvgPoolingOp
149 OP_REQUIRES_OK(context, context->GetAttr("padding", &padding_)); in AvgPoolingOp()
162 padding_, in Compute()
187 stride_, padding_, /*explicit_paddings=*/{}, in Compute()
193 stride_, padding_, /*explicit_paddings=*/{}, in Compute()
200 Eigen::PaddingType pt = BrainPadding2EigenPadding(padding_); in Compute()
212 Padding padding_; member in tensorflow::AvgPoolingOp
[all …]
Dmaxpooling_op.cc252 OP_REQUIRES_OK(context, context->GetAttr("padding", &padding_)); in MaxPoolingGradOp()
254 if (padding_ == Padding::EXPLICIT) { in MaxPoolingGradOp()
257 OP_REQUIRES_OK(context, CheckValidPadding(padding_, explicit_paddings_, in MaxPoolingGradOp()
317 padding_, in Compute()
337 Padding padding_; member in tensorflow::MaxPoolingGradOp
369 OP_REQUIRES_OK(context, context->GetAttr("padding", &padding_)); in MaxPoolingGradOp()
370 if (padding_ == Padding::EXPLICIT) { in MaxPoolingGradOp()
373 OP_REQUIRES_OK(context, CheckValidPadding(padding_, explicit_paddings_, in MaxPoolingGradOp()
421 if (padding_ == Padding::EXPLICIT) { in Compute()
430 stride, padding_, explicit_paddings_, in Compute()
[all …]
Dquantized_pooling_ops.cc49 OP_REQUIRES_OK(context, context->GetAttr("padding", &padding_)); in QuantizedAvgPoolingOp()
60 padding_, in Compute()
91 padding_); in Compute()
110 Padding padding_; member in tensorflow::QuantizedAvgPoolingOp
Ddilation_ops.cc118 ParseAttributes(context, &strides_, &rates_, &padding_); in DilationOp()
130 ParseSizes(context, strides_, rates_, padding_, &stride_rows, &stride_cols, in Compute()
157 Padding padding_; member in tensorflow::DilationOp
216 ParseAttributes(context, &strides_, &rates_, &padding_); in DilationBackpropInputOp()
229 ParseSizes(context, strides_, rates_, padding_, &stride_rows, &stride_cols, in Compute()
264 Padding padding_; member in tensorflow::DilationBackpropInputOp
336 ParseAttributes(context, &strides_, &rates_, &padding_); in DilationBackpropFilterOp()
349 ParseSizes(context, strides_, rates_, padding_, &stride_rows, &stride_cols, in Compute()
384 Padding padding_; member in tensorflow::DilationBackpropFilterOp
Dconv_grad_ops_3d.cc222 OP_REQUIRES_OK(context, context->GetAttr("padding", &padding_)); in Conv3DBackpropInputOp()
246 stride_, padding_, data_format_, &dims)); in Compute()
265 Padding padding_; member in tensorflow::Conv3DBackpropInputOp
329 OP_REQUIRES_OK(context, context->GetAttr("padding", &padding_)); in Conv3DCustomBackpropInputOp()
353 stride_, padding_, data_format_, &dims)); in Compute()
366 dims.spatial_dims[0].stride, padding_, in Compute()
372 dims.spatial_dims[1].stride, padding_, in Compute()
378 dims.spatial_dims[2].stride, padding_, in Compute()
586 Padding padding_; member in tensorflow::Conv3DCustomBackpropInputOp
680 OP_REQUIRES_OK(context, context->GetAttr("padding", &padding_)); in Conv3DBackpropFilterOp()
[all …]
Dconv_grad_input_ops.h394 OP_REQUIRES_OK(context, context->GetAttr("padding", &padding_));
397 OP_REQUIRES_OK(context, CheckValidPadding(padding_, explicit_paddings_,
455 dilation_rows, dilation_cols, stride_rows, stride_cols, padding_,
463 Padding padding_;
496 OP_REQUIRES_OK(context, context->GetAttr("padding", &padding_));
512 OP_REQUIRES_OK(context, CheckValidPadding(padding_, explicit_paddings_,
532 /*dilations=*/{1, 1, 1, 1}, strides_, padding_,
564 dims.spatial_dims[0].stride, padding_,
570 dims.spatial_dims[1].stride, padding_,
590 if (padding_ == Padding::EXPLICIT) {
[all …]
Dpooling_ops_common.h124 OP_REQUIRES_OK(context, context->GetAttr("padding", &padding_)); in MaxPoolingOp()
125 if (padding_ == Padding::EXPLICIT) { in MaxPoolingOp()
137 context, ksize_, stride_, padding_, explicit_paddings_, in Compute()
159 context, padding_ != EXPLICIT, in Compute()
168 padding_ == Padding::EXPLICIT) { in Compute()
173 SpatialMaxPool(context, output, tensor_in, params, padding_); in Compute()
298 Padding padding_; variable
364 OP_REQUIRES_OK(context, context->GetAttr("padding", &padding_));
399 padding_,
426 SpatialMaxPool(context, output, tensor_in, params, padding_);
[all …]
Dconv_ops_gpu.h116 padding_(CheckSpatialArraySize(padding)), in batch_()
153 "(", str_util::Join(padding_, ", "), "), ", in ToString()
184 filter_, dilation_, stride_, padding_, dtype_, in get_data_as_tuple()
219 SpatialArray padding_; variable
Ddepthwise_conv_op.cc295 OP_REQUIRES_OK(context, context->GetAttr("padding", &padding_)); in DepthwiseConv2dNativeOp()
298 OP_REQUIRES_OK(context, CheckValidPadding(padding_, explicit_paddings_, in DepthwiseConv2dNativeOp()
376 if (padding_ == Padding::EXPLICIT) { in Compute()
383 input_rows, filter_rows, stride_, padding_, in Compute()
386 input_cols, filter_cols, stride_, padding_, in Compute()
446 stride_, stride_, padding_, explicit_paddings_, output, in Compute()
478 Padding padding_; member in tensorflow::DepthwiseConv2dNativeOp
/external/tensorflow/tensorflow/core/kernels/image/
Dextract_volume_patches_op.cc67 OP_REQUIRES_OK(context, context->GetAttr("padding", &padding_)); in ExtractVolumePatchesOp()
116 padding_, &out_planes, &pad_planes)); in Compute()
119 padding_, &out_rows, &pad_rows)); in Compute()
122 padding_, &out_cols, &pad_cols)); in Compute()
141 BrainPadding2EigenPadding(padding_), output->tensor<T, 5>()); in Compute()
149 Padding padding_; member in tensorflow::ExtractVolumePatchesOp
Dmirror_pad_op.h119 : impl_(op.expression(), device), padding_(op.padding()) {
132 eigen_assert(padding_[dim].first + op.offset() <= dimensions_[dim]);
133 eigen_assert(padding_[dim].second + op.offset() <= dimensions_[dim]);
134 dimensions_[dim] += padding_[dim].first + padding_[dim].second;
198 if (padding_[k].first != 0 || padding_[k].second != 0) {
205 if (padding_[k].first != 0 || padding_[k].second != 0) {
222 const Index left = padding_[dim].first * output_strides_[dim];
224 (dimensions_[dim] - padding_[dim].second) * output_strides_[dim];
289 k -= padding_[dim].first;
330 PaddingDimensions padding_;
Dextract_image_patches_op.cc61 OP_REQUIRES_OK(context, context->GetAttr("padding", &padding_)); in ExtractImagePatchesOp()
93 padding_, &out_rows, &pad_rows)); in Compute()
96 padding_, &out_cols, &pad_cols)); in Compute()
113 BrainPadding2EigenPadding(padding_), output->tensor<T, 4>()); in Compute()
121 Padding padding_; member in tensorflow::ExtractImagePatchesOp
/external/tensorflow/tensorflow/lite/delegates/gpu/common/tasks/
Dwinograd.cc191 src_[0]->Width() + padding_.prepended.w + padding_.appended.w - 2; in GetGridSize()
193 src_[0]->Height() + padding_.prepended.h + padding_.appended.h - 2; in GetGridSize()
201 src_[0]->Width() + padding_.prepended.w + padding_.appended.w - 2; in BindArguments()
203 src_[0]->Height() + padding_.prepended.h + padding_.appended.h - 2; in BindArguments()
231 : GPUOperation(definition), padding_(padding) { in Winograd4x4To36TileX6()
449 src_[0]->Width() + padding_.prepended.w + padding_.appended.w - 2, 4); in BindArguments()
451 src_[0]->Height() + padding_.prepended.h + padding_.appended.h - 2, 4); in BindArguments()
453 RETURN_IF_ERROR(args->SetInt("padding_x", -padding_.prepended.w)); in BindArguments()
454 RETURN_IF_ERROR(args->SetInt("padding_y", -padding_.prepended.h)); in BindArguments()
Dconvolution_transposed_3x3.cc29 : GPUOperation(definition), padding_(padding) { in ConvolutionTransposed3x3()
47 weights_upload_type_, padding_, in ConvolutionTransposed3x3()
345 padding_.x >= 1 ? (padding_.x - 1) / 2 : (padding_.x - 2) / 2; in BindArguments()
347 padding_.y >= 1 ? (padding_.y - 1) / 2 : (padding_.y - 2) / 2; in BindArguments()
372 const int padding_x_rem = abs(padding_.x) % 2; in GetSpatialWeightsRemap()
373 const int padding_y_rem = abs(padding_.y) % 2; in GetSpatialWeightsRemap()
/external/sfntly/cpp/src/sfntly/table/
Dsubtable.h50 virtual int32_t Padding() { return padding_; } in Padding()
54 void set_padding(int32_t padding) { padding_ = padding; } in set_padding()
68 int32_t padding_; variable
Dsubtable.cc26 : FontDataTable(data), padding_(0) { in SubTable()
31 : FontDataTable(data), padding_(0) { in SubTable()
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Dpooling_ops.cc68 padding_ = (padding == VALID) ? xla::Padding::kValid : xla::Padding::kSame; in PoolingOp()
129 xla::Padding padding_; member in tensorflow::__anon9297e9860111::PoolingOp
186 xla::MaxPool(ctx->Input(0), ksize, stride, padding_, in Compile()
240 input_shape.dim_sizes(), ksize, stride, padding_, xla_data_format); in Compile()
247 xla_data_format, padding_ == xla::Padding::kValid); in Compile()
281 OP_REQUIRES_OK(ctx, ctx->GetAttr("padding", &padding_)); in MaxPoolGradOp()
337 (padding_ == VALID) ? xla::Padding::kValid : xla::Padding::kSame; in Compile()
369 Padding padding_; member in tensorflow::__anon9297e9860111::MaxPoolGradOp
411 OP_REQUIRES_OK(ctx, ctx->GetAttr("padding", &padding_)); in AvgPoolGradOp()
443 (padding_ == VALID) ? xla::Padding::kValid : xla::Padding::kSame; in Compile()
[all …]
/external/flac/src/test_libFLAC/
Ddecoders.c60 static FLAC__StreamMetadata streaminfo_, padding_, seektable_, application1_, application2_, vorbis… variable
98 …mutils__init_metadata_blocks(&streaminfo_, &padding_, &seektable_, &application1_, &application2_,… in init_metadata_blocks_()
103 …mutils__free_metadata_blocks(&streaminfo_, &padding_, &seektable_, &application1_, &application2_,… in free_metadata_blocks_()
111 expected_metadata_sequence_[num_expected_++] = &padding_; in generate_file_()
676 expected_metadata_sequence_[num_expected_++] = &padding_; in test_stream_decoder()
686 expected_metadata_sequence_[num_expected_++] = &padding_; in test_stream_decoder()
729 expected_metadata_sequence_[num_expected_++] = &padding_; in test_stream_decoder()
758 expected_metadata_sequence_[num_expected_++] = &padding_; in test_stream_decoder()
766 expected_metadata_sequence_[num_expected_++] = &padding_; in test_stream_decoder()
795 expected_metadata_sequence_[num_expected_++] = &padding_; in test_stream_decoder()
[all …]
/external/tensorflow/tensorflow/lite/delegates/xnnpack/
Dpool_2d_tester.h116 padding_ = ::tflite::Padding_SAME; in SamePadding()
121 padding_ = ::tflite::Padding_VALID; in ValidPadding()
155 inline ::tflite::Padding Padding() const { return padding_; } in Padding()
169 ::tflite::Padding padding_ = ::tflite::Padding_VALID;
Dconv_2d_tester.h166 padding_ = ::tflite::Padding_SAME; in SamePadding()
171 padding_ = ::tflite::Padding_VALID; in ValidPadding()
205 inline ::tflite::Padding Padding() const { return padding_; } in Padding()
224 ::tflite::Padding padding_ = ::tflite::Padding_VALID;
Ddepthwise_conv_2d_tester.h170 padding_ = ::tflite::Padding_SAME; in SamePadding()
175 padding_ = ::tflite::Padding_VALID; in ValidPadding()
209 inline ::tflite::Padding Padding() const { return padding_; } in Padding()
228 ::tflite::Padding padding_ = ::tflite::Padding_VALID;
/external/flac/src/test_libFLAC++/
Ddecoders.cpp58 static ::FLAC__StreamMetadata streaminfo_, padding_, seektable_, application1_, application2_, vorb…
90 …mutils__init_metadata_blocks(&streaminfo_, &padding_, &seektable_, &application1_, &application2_,… in init_metadata_blocks_()
95 …mutils__free_metadata_blocks(&streaminfo_, &padding_, &seektable_, &application1_, &application2_,… in free_metadata_blocks_()
103 expected_metadata_sequence_[num_expected_++] = &padding_; in generate_file_()
751 expected_metadata_sequence_[num_expected_++] = &padding_; in test_stream_decoder()
761 expected_metadata_sequence_[num_expected_++] = &padding_; in test_stream_decoder()
810 expected_metadata_sequence_[num_expected_++] = &padding_; in test_stream_decoder()
843 expected_metadata_sequence_[num_expected_++] = &padding_; in test_stream_decoder()
851 expected_metadata_sequence_[num_expected_++] = &padding_; in test_stream_decoder()
884 expected_metadata_sequence_[num_expected_++] = &padding_; in test_stream_decoder()
[all …]
Dmetadata_object.cpp31 static ::FLAC__StreamMetadata streaminfo_, padding_, seektable_, application_, vorbiscomment_, cues…
112 padding_.is_last = false; in init_metadata_blocks_()
113 padding_.type = ::FLAC__METADATA_TYPE_PADDING; in init_metadata_blocks_()
114 padding_.length = 1234; in init_metadata_blocks_()
517 FLAC::Metadata::Padding blockcopy(padding_); in test_metadata_object_padding()
520 if(blockcopy != padding_) in test_metadata_object_padding()
528 FLAC::Metadata::Padding blockcopy(&padding_); in test_metadata_object_padding()
531 if(blockcopy != padding_) in test_metadata_object_padding()
539 FLAC::Metadata::Padding blockcopy(&padding_, /*copy=*/true); in test_metadata_object_padding()
542 if(blockcopy != padding_) in test_metadata_object_padding()
[all …]
/external/tensorflow/tensorflow/core/kernels/neon/
Dneon_depthwise_conv_op.cc58 OP_REQUIRES_OK(context, context->GetAttr("padding", &padding_)); in NeonDepthwiseConv2dNativeOp()
93 padding_, &out_rows, &pad_rows)); in Compute()
96 padding_, &out_cols, &pad_cols)); in Compute()
190 Padding padding_; member in tensorflow::NeonDepthwiseConv2dNativeOp
/external/tensorflow/tensorflow/core/kernels/mkl/
Dmkl_conv_ops.h61 Padding padding_; variable
71 padding_(pad), in context_()
409 padding_type = padding_;
422 stride_planes, padding_, &out_planes,
427 padding_, &out_rows, &pad_top, &pad_bottom));
431 padding_, &out_cols, &pad_left, &pad_right));
603 OP_REQUIRES_OK(context, context->GetAttr("padding", &padding_)); in MklConvBackpropCommonOp()
610 Padding padding_; variable

123