1 // Copyright (C) 2018-2019 Intel Corporation
2 // SPDX-License-Identifier: Apache-2.0
7 #include <ie_iextension.h>
9 #include <mkldnn_node.h>
14 namespace MKLDNNPlugin {
16 class MKLDNNGenericNode : public MKLDNNNode {
18 MKLDNNGenericNode(const InferenceEngine::CNNLayerPtr& layer, const mkldnn::engine& eng);
19 ~MKLDNNGenericNode() = default;
21 void getSupportedDescriptors() override;
22 void initSupportedPrimitiveDescriptors() override;
23 void createPrimitive() override;
24 void execute(mkldnn::stream strm) override;
25 bool created() const override;
26 bool created(const MKLDNNExtensionManager::Ptr& extMgr) override;
27 bool canBeInPlace() const override {
31 void initDescriptor(const InferenceEngine::LayerConfig& config) override;
34 void cleanup() override;
38 InferenceEngine::ILayerImplFactory::Ptr extFactory;
39 std::vector<InferenceEngine::ILayerImpl::Ptr> impls;
42 static Register<MKLDNNGenericNode> reg;
45 } // namespace MKLDNNPlugin