Home
last modified time | relevance | path

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

12

/external/tensorflow/tensorflow/lite/kernels/internal/
Ddepthwiseconv_quantized_test.cc293 const RuntimeShape& bias_shape, int stride, PaddingType padding_type, in TestOneDepthwiseConvWithGivenOutputShift() argument
303 op_params.padding_type = padding_type; in TestOneDepthwiseConvWithGivenOutputShift()
426 const RuntimeShape& bias_shape, int stride, PaddingType padding_type, in TestOneDepthwiseConvBisectOutputShift() argument
438 filter_shape, filter_offset, bias_data, bias_shape, stride, padding_type, in TestOneDepthwiseConvBisectOutputShift()
465 filter_shape, filter_offset, bias_data, bias_shape, stride, padding_type, in TestOneDepthwiseConvBisectOutputShift()
476 const RuntimeShape& bias_shape, int stride, PaddingType padding_type, in TestOneDepthwiseConv() argument
483 filter_shape, filter_offset, bias_data, bias_shape, stride, padding_type, in TestOneDepthwiseConv()
494 PaddingType padding_type) { in TryTestDepthwiseConv() argument
526 dilation_height_factor, padding_type, in TryTestDepthwiseConv()
544 bias_data.data(), bias_shape_inference, stride, padding_type, pad_width, in TryTestDepthwiseConv()
[all …]
Dtest_util.cc26 PaddingType padding_type, RuntimeShape* output_shape, in ComputeConvSizes() argument
37 if (padding_type == PaddingType::kValid) { in ComputeConvSizes()
45 } else if (padding_type == PaddingType::kSame) { in ComputeConvSizes()
Ddepthwiseconv_float_test.cc104 const auto padding_type = in TryTestOneDepthwiseConv() local
108 dilation_height_factor, padding_type, in TryTestOneDepthwiseConv()
128 op_params.padding_type = PaddingType::kSame; in TryTestOneDepthwiseConv()
Dtest_util.h33 PaddingType padding_type, RuntimeShape* output_shape,
/external/tensorflow/tensorflow/core/framework/
Dcommon_shape_fns.h76 Padding padding_type, int64* output_size,
105 Padding padding_type, int64* output_size,
116 int64 stride, Padding padding_type,
124 Padding padding_type, int64* output_size,
137 Padding padding_type, std::array<int64, 3>* output_ptr,
146 Padding padding_type, std::array<int64, 3>* output_ptr,
156 int64 stride, Padding padding_type,
166 Padding padding_type, int64 padding_before, int64 padding_after,
Dcommon_shape_fns.cc23 Padding padding_type, int64* output_size, in GetWindowedOutputSizeVerboseV2() argument
36 switch (padding_type) { in GetWindowedOutputSizeVerboseV2()
68 int64 stride, Padding padding_type, in GetWindowedOutputSizeVerbose() argument
73 padding_type, output_size, in GetWindowedOutputSizeVerbose()
78 Padding padding_type, int64* output_size, in GetWindowedOutputSize() argument
80 if (padding_type == Padding::EXPLICIT) { in GetWindowedOutputSize()
87 padding_type, output_size, padding_size, in GetWindowedOutputSize()
93 Padding padding_type, int64* output_size, in GetWindowedOutputSizeV2() argument
95 if (padding_type == Padding::EXPLICIT) { in GetWindowedOutputSizeV2()
102 stride, padding_type, output_size, in GetWindowedOutputSizeV2()
[all …]
/external/tensorflow/tensorflow/core/kernels/
Deigen_pooling.h66 DenseIndex strideCols, const PaddingType padding_type,
95 if (padding_type == PADDING_VALID) {
133 in_strideCols, padding_type,
183 DenseIndex strideCols, const PaddingType padding_type) { in CuboidMaxPooling() argument
208 if (padding_type == PADDING_VALID) { in CuboidMaxPooling()
251 strideRows, strideCols, padding_type, in CuboidMaxPooling()
423 DenseIndex strideCols, const PaddingType padding_type,
452 if (padding_type == PADDING_VALID) {
492 in_strideRows, in_strideCols, padding_type,
539 DenseIndex strideCols, const PaddingType padding_type) {
[all …]
Dmkl_conv_ops.h395 Padding padding_type; variable
397 padding_type = Padding::EXPLICIT;
403 padding_type = padding_;
408 padding_type, &out_rows, &pad_top, &pad_bottom));
412 padding_type, &out_cols, &pad_left, &pad_right));
Dpooling_ops_3d.cc106 TensorFormat data_format, Padding padding_type, in launch()
111 BrainPadding2EigenPadding(padding_type)); in launch()
121 TensorFormat data_format, Padding padding_type, in launch()
126 BrainPadding2EigenPadding(padding_type)); in launch()
749 TensorFormat data_format, Padding padding_type, in launch()
762 TensorFormat data_format, Padding padding_type, in launch()
/external/tensorflow/tensorflow/core/util/
Dpadding.cc40 Status CheckValidPadding(Padding padding_type, in CheckValidPadding() argument
43 if (padding_type == Padding::EXPLICIT) { in CheckValidPadding()
Dpadding.h49 Status CheckValidPadding(Padding padding_type,
/external/tensorflow/tensorflow/python/framework/
Dcommon_shapes.py118 def get_conv_output_size(input_size, filter_size, strides, padding_type): argument
132 if padding_type == b"VALID":
144 elif padding_type == b"SAME":
155 raise ValueError("Invalid padding: %r" % padding_type)
161 filter_width, row_stride, col_stride, padding_type): argument
165 (row_stride, col_stride), padding_type)
/external/tensorflow/tensorflow/contrib/fused_conv/python/ops/
Dfused_conv2d_bias_activation_op_test_base.py616 def _CalculateConvolvedOutputDim(input_dim, filter_dim, stride, padding_type): argument
633 if padding_type == "VALID":
870 padding_type = test_param["padding_type"]
891 input_height, filter_height, vertical_stride, padding_type)
893 input_width, filter_width, horizontal_stride, padding_type)
918 padding=padding_type,
927 conv_input_scale, conv_input, kernel, padding_type, strides,
/external/tensorflow/tensorflow/compiler/xla/client/lib/
Dconv_grad_size_util.cc26 Padding padding_type) { in GetWindowedOutputSize() argument
38 switch (padding_type) { in GetWindowedOutputSize()
/external/tensorflow/tensorflow/contrib/lite/kernels/internal/optimized/
Deigen_spatial_convolutions.h100 const PaddingType padding_type = PADDING_SAME,
147 switch (padding_type) {
219 row_in_stride, col_in_stride, padding_type)
/external/tensorflow/tensorflow/lite/kernels/internal/optimized/
Deigen_spatial_convolutions.h97 const PaddingType padding_type = PADDING_SAME,
144 switch (padding_type) {
216 row_in_stride, col_in_stride, padding_type)
/external/tensorflow/tensorflow/compiler/xla/python/
Dxla_client.py250 def _convert_padding_type_to_pad_values(padding_type, lhs_dims, rhs_dims, argument
253 if not isinstance(padding_type, (str, PaddingType)):
255 raise TypeError(msg.format(type(padding_type)))
257 if isinstance(padding_type, str):
258 if padding_type.upper() == 'VALID':
259 padding_type = PaddingType.VALID
260 elif padding_type.upper() == 'SAME':
261 padding_type = PaddingType.SAME
264 raise ValueError(msg.format(padding_type))
266 if padding_type == PaddingType.VALID:
[all …]
/external/tensorflow/tensorflow/lite/kernels/
Ddepthwise_conv.cc208 op_params.padding_type = PaddingType::kSame; in EvalFloat()
245 op_params.padding_type = PaddingType::kSame; in EvalQuantized()
273 op_params.padding_type = PaddingType::kSame; in EvalQuantizedPerChannel()
Ddepthwise_conv_test.cc47 Padding padding_type, in BaseDepthwiseConvolutionOpModel() argument
99 CreateDepthwiseConv2DOptions(builder_, padding_type, 1, 1, depth_mul, in BaseDepthwiseConvolutionOpModel()
Dconv.cc446 op_params.padding_type = PaddingType::kSame; in EvalQuantized()
473 op_params.padding_type = PaddingType::kSame; in EvalQuantized()
540 op_params.padding_type = RuntimePaddingType(params->padding); in EvalFloat()
641 op_params.padding_type = PaddingType::kSame; in EvalHybrid()
/external/tensorflow/tensorflow/lite/toco/tflite/
Dtypes.h44 static ::tflite::Padding Serialize(PaddingType padding_type);
Dtypes.cc188 ::tflite::Padding Padding::Serialize(PaddingType padding_type) { in Serialize() argument
189 switch (padding_type) { in Serialize()
/external/tensorflow/tensorflow/lite/experimental/micro/kernels/
Ddepthwise_conv.cc104 op_params.padding_type = PaddingType::kSame; in EvalFloat()
132 op_params.padding_type = PaddingType::kSame; in EvalQuantized()
/external/eigen/unsupported/Eigen/CXX11/src/Tensor/
DTensorImagePatch.h72 … PaddingType padding_type, Scalar padding_value)
78 m_padding_type(padding_type), m_padding_value(padding_value) {}
122 PaddingType padding_type() const { return m_padding_type; }
227 switch (op.padding_type()) {
DTensorVolumePatch.h67 … PaddingType padding_type, Scalar padding_value)
73 m_padding_type(padding_type), m_padding_value(padding_value) {}
130 PaddingType padding_type() const { return m_padding_type; }
238 switch (op.padding_type()) {

12