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;
39 std::vector<int> stride;
40 std::vector<int> paddingL;
41 std::vector<int> dilation;
42 std::vector<int> paddingR;
43 MKLDNNDims weightsDims;
44 static Register<MKLDNNDeconvolutionNode> reg;
45 InferenceEngine::Blob::Ptr biases;
46 std::vector<std::shared_ptr<mkldnn::convolution_forward::desc>> descs_fwd;
47 std::vector<std::shared_ptr<mkldnn::convolution_backward_data::desc>> descs_bwd;
50 } // namespace MKLDNNPlugin