Home
last modified time | relevance | path

Searched refs:conv_attr (Results 1 – 11 of 11) sorted by relevance

/external/tensorflow/tensorflow/lite/delegates/gpu/common/tasks/special/
Ddepthwise_conv_plus_1x1_conv.cc28 const Convolution2DAttributes& conv_attr, in UploadWeights() argument
33 int conv_src_ch_aligned = AlignByN(conv_attr.weights.shape.i, 4); in UploadWeights()
34 int conv_dst_ch_aligned = AlignByN(conv_attr.weights.shape.o, 4); in UploadWeights()
66 if (i < conv_attr.bias.shape.v) { in UploadWeights()
67 gpu_data.push_back(conv_attr.bias.data[i]); in UploadWeights()
79 if (s_ch < conv_attr.weights.shape.i && in UploadWeights()
80 d_ch < conv_attr.weights.shape.o) { in UploadWeights()
82 conv_attr.weights.shape.LinearIndex({d_ch, 0, 0, s_ch}); in UploadWeights()
83 gpu_data.push_back(conv_attr.weights.data[f_index]); in UploadWeights()
236 const Convolution2DAttributes& conv_attr) { in IsDepthwiseConvPlus1x1ConvSupported() argument
[all …]
Ddepthwise_conv_plus_1x1_conv.h37 const Convolution2DAttributes& conv_attr);
42 const Convolution2DAttributes& conv_attr);
/external/tensorflow/tensorflow/lite/delegates/gpu/common/transformations/
Dfuse_mul_to_conv_test.cc45 Convolution2DAttributes conv_attr; in TEST() local
46 conv_attr.padding.prepended = HW(0, 0); in TEST()
47 conv_attr.padding.appended = HW(0, 0); in TEST()
48 conv_attr.strides = HW(1, 1); in TEST()
49 conv_attr.dilations = HW(1, 1); in TEST()
50 conv_attr.weights.shape = OHWI(16, 3, 2, 8); in TEST()
51 conv_attr.weights.data.resize(conv_attr.weights.shape.DimensionsProduct()); in TEST()
52 conv_attr.bias.shape = Linear(16); in TEST()
53 conv_attr.bias.data.resize(16); in TEST()
63 conv_node->operation.attributes = conv_attr; in TEST()
[all …]
Dfuse_add_to_conv_test.cc45 Convolution2DAttributes conv_attr; in TEST() local
46 conv_attr.padding.prepended = HW(0, 0); in TEST()
47 conv_attr.padding.appended = HW(0, 0); in TEST()
48 conv_attr.strides = HW(1, 1); in TEST()
49 conv_attr.dilations = HW(1, 1); in TEST()
50 conv_attr.weights.shape = OHWI(16, 3, 2, 8); in TEST()
51 conv_attr.weights.data.resize(conv_attr.weights.shape.DimensionsProduct()); in TEST()
52 conv_attr.bias.shape = Linear(16); in TEST()
53 conv_attr.bias.data.resize(16); in TEST()
63 conv_node->operation.attributes = conv_attr; in TEST()
Dmerge_padding_with_test.cc53 Convolution2DAttributes conv_attr; in TEST() local
54 conv_attr.padding.appended = HW(0, 0); in TEST()
55 conv_attr.padding.prepended = HW(0, 0); in TEST()
56 conv_node->operation.attributes = conv_attr; in TEST()
67 conv_attr = in TEST()
69 EXPECT_EQ(HW(1, 1), conv_attr.padding.prepended); in TEST()
70 EXPECT_EQ(HW(2, 2), conv_attr.padding.appended); in TEST()
98 Convolution2DAttributes conv_attr; in TEST() local
99 conv_attr.padding.appended = HW(0, 0); in TEST()
100 conv_attr.padding.prepended = HW(0, 0); in TEST()
[all …]
Dfuse_add_to_conv.cc75 Convolution2DAttributes* conv_attr = in ApplyToNodesSequence() local
78 FuseConvolution2DWithAdd(add_attr, conv_attr); in ApplyToNodesSequence()
81 ConvolutionTransposedAttributes* conv_attr = in ApplyToNodesSequence() local
84 FuseConvolutionTransposedWithAdd(add_attr, conv_attr); in ApplyToNodesSequence()
87 DepthwiseConvolution2DAttributes* conv_attr = in ApplyToNodesSequence() local
90 FuseDepthwiseConvolution2DWithAdd(add_attr, conv_attr); in ApplyToNodesSequence()
93 FullyConnectedAttributes* conv_attr = in ApplyToNodesSequence() local
96 FuseFullyConnectedWithAdd(add_attr, conv_attr); in ApplyToNodesSequence()
Dfuse_mul_to_conv.cc66 Convolution2DAttributes* conv_attr = in ApplyToNodesSequence() local
69 FuseConvolution2DWithMultiply(mul_attr, conv_attr); in ApplyToNodesSequence()
72 ConvolutionTransposedAttributes* conv_attr = in ApplyToNodesSequence() local
75 FuseConvolutionTransposedWithMultiply(mul_attr, conv_attr); in ApplyToNodesSequence()
78 DepthwiseConvolution2DAttributes* conv_attr = in ApplyToNodesSequence() local
81 FuseDepthwiseConvolution2DWithMultiply(mul_attr, conv_attr); in ApplyToNodesSequence()
84 FullyConnectedAttributes* conv_attr = in ApplyToNodesSequence() local
87 FuseFullyConnectedWithMultiply(mul_attr, conv_attr); in ApplyToNodesSequence()
130 Convolution2DAttributes* conv_attr = in ApplyToNodesSequence() local
133 FuseMultiplyWithConvolution2D(mul_attr, conv_attr); in ApplyToNodesSequence()
[all …]
Dmake_fully_connected.cc59 const auto& conv_attr = absl::any_cast<const Convolution2DAttributes&>( in ApplyToNode() local
61 if (!IsConvEquivalentToFullyConnected(conv_attr)) { in ApplyToNode()
66 fc_attr.weights = conv_attr.weights; in ApplyToNode()
67 fc_attr.bias = conv_attr.bias; in ApplyToNode()
/external/tensorflow/tensorflow/lite/delegates/gpu/common/selectors/default/
Dfully_connected_selector.cc90 Convolution2DAttributes conv_attr; in SelectFullyConnected() local
91 conv_attr.padding.prepended = HW(0, 0); in SelectFullyConnected()
92 conv_attr.padding.appended = HW(0, 0); in SelectFullyConnected()
93 conv_attr.strides = HW(1, 1); in SelectFullyConnected()
94 conv_attr.dilations = HW(1, 1); in SelectFullyConnected()
95 conv_attr.weights = attr.weights; in SelectFullyConnected()
96 conv_attr.bias = attr.bias; in SelectFullyConnected()
98 CreateConvolutionMetal(op_def, dst_shape, conv_attr, gpu_info); in SelectFullyConnected()
/external/tensorflow/tensorflow/lite/delegates/gpu/common/selectors/
Dspecial_selector.cc69 auto conv_attr = in TryDepthwiseConvPlus1x1Conv() local
82 if (!IsDepthwiseConvPlus1x1ConvSupported(op_def, dw_attr, conv_attr)) { in TryDepthwiseConvPlus1x1Conv()
87 auto operation = CreateDepthwiseConvPlus1x1Conv(op_def, dw_attr, conv_attr); in TryDepthwiseConvPlus1x1Conv()
/external/tensorflow/tensorflow/core/kernels/mkl/
Dmkl_fused_batch_norm_op_test.cc360 ops::Conv2D::Attrs conv_attr; in VerifyFusedBatchNormGradWithConv2D() local
361 conv_attr = conv_attr.DataFormat("NHWC"); in VerifyFusedBatchNormGradWithConv2D()
363 {1, 1, 1, 1}, "SAME", conv_attr); in VerifyFusedBatchNormGradWithConv2D()