mkldnn_concat_node.h 878 Bytes
Newer Older
openvino-pushbot's avatar
openvino-pushbot committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
// Copyright (C) 2018 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//

#pragma once

#include <ie_common.h>
#include <mkldnn_node.h>
#include <string>

namespace MKLDNNPlugin {

class MKLDNNConcatNode : public MKLDNNNode {
public:
    MKLDNNConcatNode(const InferenceEngine::CNNLayerPtr& layer, const mkldnn::engine& eng);
    ~MKLDNNConcatNode() override = default;

    void getSupportedDescriptors() override;
    void initSupportedPrimitiveDescriptors() override;
    void initOptimalPrimitiveDescriptor() override;
    void createPrimitive() override;
    void selectOptimalPrimitiveDescriptor() override;
    bool created() const override;

    bool isOptimized() const;

private:
    static Register<MKLDNNConcatNode> reg;
    size_t axis = 0;
Alexey Suhov's avatar
Alexey Suhov committed
30 31

    size_t inverseOrder(const InferenceEngine::SizeVector& order, size_t axis);
openvino-pushbot's avatar
openvino-pushbot committed
32 33 34 35
};

}  // namespace MKLDNNPlugin