Publishing 2019 R1 content
[platform/upstream/dldt.git] / inference-engine / src / mkldnn_plugin / nodes / mkldnn_power_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 MKLDNNPowerNode : public MKLDNNNode {
14 public:
15     MKLDNNPowerNode(const InferenceEngine::CNNLayerPtr& layer, const mkldnn::engine& eng);
16     ~MKLDNNPowerNode() override = default;
17
18     void getSupportedDescriptors() override;
19     void initSupportedPrimitiveDescriptors() override;
20     void createPrimitive() override;
21     void execute(mkldnn::stream strm) override;
22     bool created() const override;
23
24 private:
25     static Register<MKLDNNPowerNode> reg;
26     float scale;
27     float shift;
28     float power;
29 };
30
31 }  // namespace MKLDNNPlugin
32