1 // Copyright (C) 2018-2019 Intel Corporation
2 // SPDX-License-Identifier: Apache-2.0
8 #include <mkldnn_node.h>
13 namespace MKLDNNPlugin {
15 class MKLDNNROIPoolingNode : public MKLDNNNode {
17 MKLDNNROIPoolingNode(const InferenceEngine::CNNLayerPtr& layer, const mkldnn::engine& eng);
18 ~MKLDNNROIPoolingNode() override = default;
20 void getSupportedDescriptors() override;
21 void createDescriptor(const std::vector<InferenceEngine::TensorDesc>& inputDesc,
22 const std::vector<InferenceEngine::TensorDesc>& outputDesc) override;
23 void createPrimitive() override;
24 bool created() const override;
27 static Register<MKLDNNROIPoolingNode> reg;
30 float spatial_scale = 0;
31 mkldnn::algorithm method = mkldnn::algorithm::roi_pooling_max;
34 } // namespace MKLDNNPlugin