/external/tensorflow/tensorflow/lite/delegates/gpu/gl/kernels/ |
D | pad.cc | 47 attr.prepended.h < 0 || attr.prepended.w < 0 || attr.prepended.c < 0) { in GenerateCode() 50 if (attr.appended.b != 0 || attr.prepended.b != 0) { in GenerateCode() 58 int4(attr.prepended.w, attr.prepended.h, attr.prepended.c, 0)}, in GenerateCode() 71 if (attr.prepended.c == 0 && attr.appended.c == 0) { in GenerateCode() 96 if (attr.prepended.c == 0 && attr.appended.c == 0) { in GenerateCode() 99 } else if (attr.prepended.c % 4 == 0) { in GenerateCode()
|
D | pooling.cc | 37 if (attr.padding.prepended.h > attr.kernel.h || in GenerateMaxPoolingCode() 38 attr.padding.prepended.w > attr.kernel.w) { in GenerateMaxPoolingCode() 46 {"offset", int2(attr.padding.prepended.w, attr.padding.prepended.h)}, in GenerateMaxPoolingCode() 105 {"offset", int2(attr.padding.prepended.w, attr.padding.prepended.h)}, in GenerateAveragePoolingCode() 124 const int64_t base_x = -attr.padding.prepended.w; in GenerateAveragePoolingCode() 125 const int64_t base_y = -attr.padding.prepended.h; in GenerateAveragePoolingCode()
|
D | depthwise_conv.cc | 55 {"padding_w", attr.padding.prepended.w}, in GenerateCode() 56 {"padding_h", attr.padding.prepended.h}, in GenerateCode() 69 offsets.emplace_back(w * attr.dilations.w - attr.padding.prepended.w, in GenerateCode() 70 h * attr.dilations.h - attr.padding.prepended.h); in GenerateCode() 85 attr.padding.prepended.h != 0 || attr.padding.prepended.w != 0; in GenerateCode()
|
D | conv.cc | 56 {"padding_w", attr.padding.prepended.w}, in GenerateCode() 57 {"padding_h", attr.padding.prepended.h}, in GenerateCode() 69 offsets.emplace_back(w * attr.dilations.w - attr.padding.prepended.w, in GenerateCode() 70 h * attr.dilations.h - attr.padding.prepended.h); in GenerateCode() 86 attr.padding.prepended.h != 0 || attr.padding.prepended.w != 0; in GenerateCode() 183 attr.padding.prepended.h != 0 || attr.padding.prepended.w != 0) { in GenerateCode()
|
D | transpose_conv_test.cc | 52 attr.padding.prepended = HW(0, 0); in TEST() 92 attr.padding.prepended = HW(0, 0); in TEST() 133 attr.padding.prepended = HW(1, 1); in TEST() 172 attr.padding.prepended = HW(0, 0); in TEST() 211 attr.padding.prepended = HW(0, 0); in TEST()
|
D | conv_test.cc | 53 attr.padding.prepended = HW(0, 0); in TEST() 91 attr.padding.prepended = HW(0, 0); in TEST() 128 attr.padding.prepended = HW(1, 1); in TEST() 165 attr.padding.prepended = HW(0, 0); in TEST() 203 attr.padding.prepended = HW(0, 0); in TEST()
|
D | max_unpooling.cc | 42 {"offset", int2(attr.padding.prepended.w, attr.padding.prepended.h)}, in GenerateCode()
|
D | pooling_test.cc | 55 attr.padding.prepended = HW(0, 0); in TEST() 85 attr.padding.prepended = HW(0, 0); in TEST() 111 attr.padding.prepended = HW(0, 0); in TEST()
|
D | transpose_conv.cc | 54 {"padding", int2(weights.w - 1 - attr.padding.prepended.w, in GenerateCode() 55 weights.h - 1 - attr.padding.prepended.h)}, in GenerateCode()
|
D | pad_test.cc | 48 attr.prepended = BHWC(0, prepend.h, prepend.w, prepend.c); in TestPadOperation() 134 attr.prepended = BHWC(0, 0, 2, 0); in TEST() 157 attr.prepended = BHWC(0, 0, 0, 2); in TEST()
|
D | depthwise_conv_test.cc | 54 attr.padding.prepended = HW(0, 0); in TEST() 92 attr.padding.prepended = HW(0, 0); in TEST() 131 attr.padding.prepended = HW(0, 0); in TEST()
|
/external/tensorflow/tensorflow/lite/delegates/gpu/common/ |
D | operations.cc | 34 prepended = value.prepended; in operator =() 40 return this->prepended == value.prepended && this->appended == value.appended; in operator ==() 46 prepended.h -= value.prepended.h; in operator -() 47 prepended.w -= value.prepended.w; in operator -() 54 prepended = value.prepended; in operator =() 60 return this->prepended == value.prepended && this->appended == value.appended; in operator ==() 66 prepended.h -= value.prepended.h; in operator -() 67 prepended.w -= value.prepended.w; in operator -() 68 prepended.d -= value.prepended.d; in operator -() 281 attr.padding.prepended.get<T>() + attr.padding.appended.get<T>(), in CalculateOutputWithoutStrides() [all …]
|
D | winograd_util_test.cc | 26 attr.padding.prepended = HW(1, 2); in TEST() 36 attr.padding.prepended = HW(1, 2); in TEST()
|
/external/tensorflow/tensorflow/lite/delegates/gpu/common/tasks/ |
D | padding.cc | 31 op->args_.AddInt("prepended_x", attr.prepended.w); in GetPaddingCode() 32 op->args_.AddInt("prepended_y", attr.prepended.h); in GetPaddingCode() 33 op->args_.AddInt("prepended_z", attr.prepended.c); in GetPaddingCode() 34 op->args_.AddInt("prepended_w", attr.prepended.b); in GetPaddingCode() 76 if (attr.prepended.c == 0 && attr.appended.c == 0) { in GetPaddingCode() 105 if (attr.prepended.c == 0 && attr.appended.c == 0) { in GetPaddingCode() 108 } else if (attr.prepended.c % 4 == 0) { in GetPaddingCode()
|
D | padding_test_util.cc | 34 attr.prepended = BHWC(0, 0, 0, 0); in PaddingAppendWidthTest() 64 attr.prepended = BHWC(0, 0, 1, 0); in PaddingPrependWidthTest() 94 attr.prepended = BHWC(0, 0, 0, 0); in PaddingAppendHeightTest() 123 attr.prepended = BHWC(0, 1, 0, 0); in PaddingPrependHeightTest() 152 attr.prepended = BHWC(0, 0, 0, 0); in PaddingAppendChannelsTest() 181 attr.prepended = BHWC(0, 0, 0, 1); in PaddingPrependChannelsTest() 210 attr.prepended = BHWC(0, 0, 0, 4); in PaddingPrependChannelsX4Test() 239 attr.prepended = BHWC(0, 0, 1, 1); in PaddingComplexTest() 271 attr.prepended = BHWC(0, 0, 2, 0); in PaddingReflectWidthTest() 301 attr.prepended = BHWC(0, 0, 0, 2); in PaddingReflectChannelsTest()
|
D | depthwise_conv.cc | 244 op.args_.AddInt("padding_x", -attr.padding.prepended.w); in CreateDepthwiseConvolution2D() 248 op.args_.AddInt("padding_y", -attr.padding.prepended.h); in CreateDepthwiseConvolution2D() 277 op.args_.AddInt("padding_x", -attr.padding.prepended.w); in CreateDepthwiseConvolution2DDynamicWeights() 280 op.args_.AddInt("padding_y", -attr.padding.prepended.h); in CreateDepthwiseConvolution2DDynamicWeights() 308 op.args_.AddInt("padding_x", -attr.padding.prepended.w); in CreateDepthwiseConvolution3D() 312 op.args_.AddInt("padding_y", -attr.padding.prepended.h); in CreateDepthwiseConvolution3D() 316 op.args_.AddInt("padding_z", -attr.padding.prepended.d); in CreateDepthwiseConvolution3D()
|
D | winograd.cc | 191 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() 219 desc.args_.AddInt("padding_x", -padding.prepended.w); in CreateWinograd4x4To36() 220 desc.args_.AddInt("padding_y", -padding.prepended.h); in CreateWinograd4x4To36() 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()
|
D | pooling_test_util.cc | 34 attr.padding.prepended = HW(0, 0); in AveragePoolingTest() 65 attr.padding.prepended = HW(0, 0); in AveragePoolingNonEmptyPaddingTest() 97 attr.padding.prepended = HW(0, 0); in MaxPoolingTest() 128 attr.padding.prepended = HW(0, 0); in MaxPoolingIndicesTest()
|
D | conv_powervr_test_util.cc | 34 attr.padding.prepended = HW(0, 0); in ConvPowerVR1x1SimpleWeightsTest() 71 attr.padding.prepended = HW(0, 0); in ConvPowerVR1x1Test() 108 attr.padding.prepended = HW(0, 0); in ConvPowerVRSimpleWeightsTest() 144 attr.padding.prepended = HW(0, 0); in ConvPowerVRTest()
|
D | pooling.cc | 292 op.args_.AddInt("padding_x", -attr.padding.prepended.w); in CreatePooling() 295 op.args_.AddInt("padding_y", -attr.padding.prepended.h); in CreatePooling() 313 op.args_.AddInt("padding_x", -attr.padding.prepended.w); in CreatePooling() 316 op.args_.AddInt("padding_y", -attr.padding.prepended.h); in CreatePooling() 319 op.args_.AddInt("padding_z", -attr.padding.prepended.d); in CreatePooling()
|
D | depthwise_conv_test_util.cc | 34 attr.padding.prepended = HW(1, 0); in DepthwiseConvSimpleWeightsTest() 71 attr.padding.prepended = HW(1, 0); in DepthwiseConvNoMultiplierTest() 108 attr.padding.prepended = HW(1, 0); in DepthwiseConvMultiplier2Test()
|
/external/tensorflow/tensorflow/lite/delegates/gpu/common/transformations/ |
D | merge_padding_with.cc | 64 if (pad_attr.appended.c != 0 || pad_attr.prepended.c != 0 || in ApplyToNodesSequence() 65 pad_attr.appended.b != 0 || pad_attr.prepended.b != 0) { in ApplyToNodesSequence() 80 node_attr->padding.prepended.h += pad_attr.prepended.h; in ApplyToNodesSequence() 81 node_attr->padding.prepended.w += pad_attr.prepended.w; in ApplyToNodesSequence() 84 absl::StrCat("Added padding: prepended = {h = ", pad_attr.prepended.h, in ApplyToNodesSequence() 85 ", w = ", pad_attr.prepended.w, "}, appended = { h = ", in ApplyToNodesSequence() 136 if (pad_attr.prepended != BHWC(0, 0, 0, 0) || pad_attr.appended.h != 0 || in ApplyToNode()
|
D | merge_padding_with_test.cc | 44 attr.prepended = BHWC(0, 1, 1, 0); in TEST() 55 conv_attr.padding.prepended = HW(0, 0); in TEST() 69 EXPECT_EQ(HW(1, 1), conv_attr.padding.prepended); in TEST() 81 attr.prepended = BHWC(0, 1, 1, 0); in TEST() 89 attr.prepended = BHWC(0, 0, 0, 0); in TEST() 100 conv_attr.padding.prepended = HW(0, 0); in TEST() 114 EXPECT_EQ(HW(1, 1), conv_attr.padding.prepended); in TEST() 129 pad_attr.prepended = BHWC(0, 0, 0, 0); in TEST() 167 pad_attr.prepended = BHWC(0, 0, 0, 0); in TEST()
|
D | make_fully_connected_test.cc | 41 attr0.padding.prepended = HW(0, 0); in TEST() 49 attr1.padding.prepended = HW(0, 0); in TEST() 57 attr2.padding.prepended = HW(0, 0); in TEST()
|
D | global_pooling_to_reduce_op.cc | 38 attr.padding.appended.h == 0 && attr.padding.prepended.w == 0 && in IsGlobalPooling() 39 attr.padding.prepended.h == 0; in IsGlobalPooling()
|