Publishing 2019 R1 content
[platform/upstream/dldt.git] / inference-engine / src / mkldnn_plugin / nodes / mkldnn_input_node.h
1 // Copyright (C) 2018-2019 Intel Corporation
2 // SPDX-License-Identifier: Apache-2.0
3 //
4
5 #pragma once
6
7 #include <ie_common.h>
8 #include <mkldnn_node.h>
9 #include <string>
10
11 namespace MKLDNNPlugin {
12
13 class MKLDNNInputNode : public MKLDNNNode {
14 public:
15     MKLDNNInputNode(const InferenceEngine::CNNLayerPtr& layer, const mkldnn::engine& eng);
16     ~MKLDNNInputNode() override = default;
17
18     void getSupportedDescriptors() override;
19     void initSupportedPrimitiveDescriptors() override;
20     void createPrimitive() override;
21     bool created() const override;
22
23     void execute(mkldnn::stream strm) override;
24     void withMeanImage() {
25         isMeanImage = true;
26     }
27
28 private:
29     static Register<MKLDNNInputNode> reg;
30     InferenceEngine::Blob::Ptr constBlob;
31     bool isMeanImage = false;
32 };
33
34 }  // namespace MKLDNNPlugin
35