1 // Copyright (C) 2018 Intel Corporation
3 // SPDX-License-Identifier: Apache-2.0
9 #include <mkldnn_node.h>
14 namespace MKLDNNPlugin {
16 class MKLDNNDeconvolutionNode : public MKLDNNNode {
18 MKLDNNDeconvolutionNode(const InferenceEngine::CNNLayerPtr& layer, const mkldnn::engine& eng);
19 ~MKLDNNDeconvolutionNode() override = default;
21 void getSupportedDescriptors() override;
22 void createDescriptor(const std::vector<InferenceEngine::TensorDesc>& inputDesc,
23 const std::vector<InferenceEngine::TensorDesc>& outputDesc) override;
24 void createPrimitive() override;
25 void execute(mkldnn::stream strm) override;
26 bool created() const override;
27 bool canBeInPlace() const override {
31 MKLDNNMemoryDesc getSrcMemDesc(mkldnn::primitive_desc_iterator &primitive_desc_it, size_t idx) override;
32 MKLDNNMemoryDesc getDstMemDesc(mkldnn::primitive_desc_iterator &primitive_desc_it, size_t idx) override;
38 std::vector<int> stride;
39 std::vector<int> paddingL;
40 std::vector<int> dilation;
41 std::vector<int> paddingR;
42 MKLDNNDims weightsDims;
43 static Register<MKLDNNDeconvolutionNode> reg;
44 InferenceEngine::Blob::Ptr biases;
45 std::vector<std::shared_ptr<mkldnn::convolution_forward::desc>> descs_fwd;
46 std::vector<std::shared_ptr<mkldnn::convolution_backward_data::desc>> descs_bwd;
49 } // namespace MKLDNNPlugin