Home
last modified time | relevance | path

Searched refs:PaddingType (Results 1 – 25 of 84) sorted by relevance

1234

/external/tensorflow/tensorflow/lite/micro/kernels/
Dkernel_util.cc40 PaddingType RuntimePaddingType(TfLitePadding padding) { in RuntimePaddingType()
43 return PaddingType::kSame; in RuntimePaddingType()
45 return PaddingType::kValid; in RuntimePaddingType()
48 return PaddingType::kNone; in RuntimePaddingType()
Dtranspose_conv.cc55 inline PaddingType RuntimePaddingType(TfLitePadding padding) { in RuntimePaddingType()
58 return PaddingType::kSame; in RuntimePaddingType()
60 return PaddingType::kValid; in RuntimePaddingType()
63 return PaddingType::kNone; in RuntimePaddingType()
Ddepthwise_conv.cc178 op_params.padding_type = PaddingType::kSame; in EvalFloat()
207 op_params.padding_type = PaddingType::kSame; in EvalQuantizedPerChannel()
245 op_params.padding_type = PaddingType::kSame; in EvalQuantized()
Dkernel_util.h73 PaddingType RuntimePaddingType(TfLitePadding padding);
/external/tensorflow/tensorflow/lite/kernels/internal/optimized/
Dmultithreaded_conv.h72 Eigen::PaddingType RuntimePadding2EigenPadding(PaddingType padding) { in RuntimePadding2EigenPadding()
74 case PaddingType::kValid: in RuntimePadding2EigenPadding()
76 case PaddingType::kSame: in RuntimePadding2EigenPadding()
78 case PaddingType::kNone: in RuntimePadding2EigenPadding()
92 PaddingType padding, T* output_data, int output_height, in operator()
151 const PaddingType padding = params.padding_type; in Conv()
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Dconv_op_helpers.cc246 xla::PaddingType padding_type = xla::PaddingType::PADDING_INVALID; in MakeXlaForwardConvOp()
253 padding_type = xla::PaddingType::PADDING_VALID; in MakeXlaForwardConvOp()
256 padding_type = xla::PaddingType::PADDING_SAME; in MakeXlaForwardConvOp()
277 if (padding_type != xla::PaddingType::PADDING_INVALID) { in MakeXlaForwardConvOp()
343 xla::PaddingType padding_type = xla::PaddingType::PADDING_INVALID; in MakeXlaBackpropInputConvOp()
350 padding_type = xla::PaddingType::PADDING_VALID; in MakeXlaBackpropInputConvOp()
353 padding_type = xla::PaddingType::PADDING_SAME; in MakeXlaBackpropInputConvOp()
373 if (padding_type != xla::PaddingType::PADDING_INVALID) { in MakeXlaBackpropInputConvOp()
459 xla::PaddingType padding_type = xla::PaddingType::PADDING_INVALID; in MakeXlaBackpropFilterConvOp()
466 padding_type = xla::PaddingType::PADDING_VALID; in MakeXlaBackpropFilterConvOp()
[all …]
/external/tensorflow/tensorflow/lite/toco/tflite/
Dtypes.cc196 ::tflite::Padding Padding::Serialize(PaddingType padding_type) { in Serialize()
198 case PaddingType::kSame: in Serialize()
200 case PaddingType::kValid: in Serialize()
207 PaddingType Padding::Deserialize(int padding) { in Deserialize()
210 return PaddingType::kSame; in Deserialize()
212 return PaddingType::kValid; in Deserialize()
Dtypes.h44 static ::tflite::Padding Serialize(PaddingType padding_type);
45 static PaddingType Deserialize(int padding);
Dtypes_test.cc193 EXPECT_EQ(::tflite::Padding_SAME, Padding::Serialize(PaddingType::kSame)); in TEST()
194 EXPECT_EQ(PaddingType::kSame, Padding::Deserialize(::tflite::Padding_SAME)); in TEST()
196 EXPECT_EQ(::tflite::Padding_VALID, Padding::Serialize(PaddingType::kValid)); in TEST()
197 EXPECT_EQ(PaddingType::kValid, Padding::Deserialize(::tflite::Padding_VALID)); in TEST()
199 EXPECT_DEATH(Padding::Serialize(static_cast<PaddingType>(10000)), in TEST()
/external/tensorflow/tensorflow/compiler/xla/service/
Ddynamic_window_utils.h41 PaddingType padding_type);
47 PaddingType padding_type);
Ddynamic_window_utils.cc104 PaddingType padding_type) { in GetWindowedOutputSize()
111 if (padding_type == PaddingType::PADDING_VALID) { in GetWindowedOutputSize()
116 } else if (padding_type == PaddingType::PADDING_SAME) { in GetWindowedOutputSize()
133 PaddingType padding_type) { in GetWindowedInputGradSize()
/external/tensorflow/tensorflow/lite/kernels/internal/
Dtest_util.cc26 PaddingType padding_type, RuntimeShape* output_shape, in ComputeConvSizes()
37 if (padding_type == PaddingType::kValid) { in ComputeConvSizes()
45 } else if (padding_type == PaddingType::kSame) { in ComputeConvSizes()
Ddepthwiseconv_float_test.cc108 UniformRandomInt(0, 1) ? PaddingType::kSame : PaddingType::kValid; in TryTestOneDepthwiseConv()
131 op_params.padding_type = PaddingType::kSame; in TryTestOneDepthwiseConv()
Ddepthwiseconv_quantized_test.cc619 PaddingType padding_type, int pad_width, int pad_height, in TestOneDepthwiseConvWithGivenOutputShift()
756 PaddingType padding_type, int pad_width, int pad_height, in TestOneDepthwiseConvBisectOutputShift()
815 PaddingType padding_type, int pad_width, int pad_height, in TestOneDepthwiseConv()
835 PaddingType padding_type) { in TryTestDepthwiseConv()
968 UniformRandomInt(0, 1) ? PaddingType::kSame : PaddingType::kValid; in TryTestOneDepthwiseConv()
991 UniformRandomInt(0, 1) ? PaddingType::kSame : PaddingType::kValid; in TryTestOneDepthwiseConv3x3Filter()
999 if (padding_type == PaddingType::kSame && stride == 2) { in TryTestOneDepthwiseConv3x3Filter()
1006 if (padding_type == PaddingType::kSame && in TryTestOneDepthwiseConv3x3Filter()
1046 test_param.test_pad ? PaddingType::kSame : PaddingType::kValid; in TryTestOneNeonDot3x3()
/external/tensorflow/tensorflow/core/kernels/
Dmaxpooling_op.h34 const Eigen::PaddingType& padding) { in operator()
47 const Eigen::PaddingType& padding) {}
Dconv_2d.h33 const Eigen::PaddingType& padding,
53 const Eigen::PaddingType& padding, in operator()
67 col_dilation, Eigen::PaddingType::PADDING_VALID, output_kernel, in operator()
79 int col_dilation, const Eigen::PaddingType& padding,
98 Eigen::PaddingType::PADDING_VALID, col_dilation, row_dilation,
Davgpooling_op.h32 const Eigen::PaddingType& padding) { in operator()
Deigen_pooling.h66 DenseIndex strideCols, const PaddingType padding_type,
183 DenseIndex strideCols, const PaddingType padding_type) { in CuboidMaxPooling()
426 DenseIndex strideCols, const PaddingType padding_type,
542 DenseIndex strideCols, const PaddingType padding_type) {
/external/tensorflow/tensorflow/compiler/xla/python/
Dxla_client.py384 class PaddingType(enum.Enum): class
392 if not isinstance(padding_type, (str, PaddingType)):
398 padding_type = PaddingType.VALID
400 padding_type = PaddingType.SAME
405 if padding_type == PaddingType.VALID:
407 elif padding_type == PaddingType.SAME:
/external/clang/include/clang/CodeGen/
DCGFunctionInfo.h82 llvm::Type *PaddingType; // canHavePaddingType() member
104 PaddingType = T; in setPaddingType()
118 : TypeData(nullptr), PaddingType(nullptr), DirectOffset(0), in ABIArgInfo()
258 return (canHavePaddingType() ? PaddingType : nullptr); in getPaddingType()
/external/tensorflow/tensorflow/core/kernels/image/
Dextract_image_patches_op.h31 const Eigen::PaddingType& padding, in operator()
Dextract_volume_patches_op.h33 const Eigen::PaddingType& padding, in operator()
/external/tensorflow/tensorflow/core/framework/
Dops_util.cc27 Eigen::PaddingType BrainPadding2EigenPadding(Padding padding) { in BrainPadding2EigenPadding()
/external/llvm-project/clang/include/clang/CodeGen/
DCGFunctionInfo.h93 llvm::Type *PaddingType; // canHavePaddingType() member
119 PaddingType = T; in setPaddingType()
129 : TypeData(nullptr), PaddingType(nullptr), DirectOffset(0), TheKind(K), in TypeData()
319 return (canHavePaddingType() ? PaddingType : nullptr); in getPaddingType()
/external/tensorflow/tensorflow/lite/kernels/
Ddepthwise_conv.cc304 op_params.padding_type = PaddingType::kSame; in EvalFloat()
343 op_params.padding_type = PaddingType::kSame; in EvalQuantized()
384 op_params.padding_type = PaddingType::kSame; in EvalQuantizedPerChannel()
425 op_params.padding_type = PaddingType::kSame; in EvalQuantizedPerChannel16x8()
485 op_params.padding_type = PaddingType::kSame; in EvalHybridPerChannel()

1234