1 // Copyright (C) 2018-2019 Intel Corporation
2 // SPDX-License-Identifier: Apache-2.0
8 #include <mkldnn_node.h>
12 namespace MKLDNNPlugin {
14 class MKLDNNCropNode : public MKLDNNNode {
16 MKLDNNCropNode(const InferenceEngine::CNNLayerPtr& layer, const mkldnn::engine& eng);
17 ~MKLDNNCropNode() override = default;
19 void getSupportedDescriptors() override;
20 void initSupportedPrimitiveDescriptors() override;
21 void createPrimitive() override;
22 void execute(mkldnn::stream strm) override;
23 bool created() const override;
24 bool canBeInPlace() const override {
29 static Register<MKLDNNCropNode> reg;
31 std::vector<int> offsets;
32 std::vector<int> dims;
35 } // namespace MKLDNNPlugin