65 lines
2.1 KiB
C++
65 lines
2.1 KiB
C++
|
|
// Copyright (C) 2018-2025 Intel Corporation
|
||
|
|
// SPDX-License-Identifier: Apache-2.0
|
||
|
|
//
|
||
|
|
|
||
|
|
#pragma once
|
||
|
|
|
||
|
|
#include <cstddef>
|
||
|
|
#include <cstdint>
|
||
|
|
#include <vector>
|
||
|
|
|
||
|
|
#include "openvino/core/attribute_adapter.hpp"
|
||
|
|
#include "openvino/op/op.hpp"
|
||
|
|
#include "openvino/op/util/attr_types.hpp"
|
||
|
|
|
||
|
|
namespace ov {
|
||
|
|
namespace op {
|
||
|
|
namespace v6 {
|
||
|
|
/// \brief An operation ExperimentalDetectronROIFeatureExtractor
|
||
|
|
/// is the ROIAlign operation applied over a feature pyramid.
|
||
|
|
/// \ingroup ov_ops_cpp_api
|
||
|
|
class OPENVINO_API ExperimentalDetectronROIFeatureExtractor : public Op {
|
||
|
|
public:
|
||
|
|
OPENVINO_OP("ExperimentalDetectronROIFeatureExtractor", "opset6", op::Op);
|
||
|
|
|
||
|
|
/// \brief Structure that specifies attributes of the operation
|
||
|
|
struct Attributes {
|
||
|
|
int64_t output_size;
|
||
|
|
int64_t sampling_ratio;
|
||
|
|
std::vector<int64_t> pyramid_scales;
|
||
|
|
bool aligned;
|
||
|
|
};
|
||
|
|
|
||
|
|
ExperimentalDetectronROIFeatureExtractor() = default;
|
||
|
|
/// \brief Constructs a ExperimentalDetectronROIFeatureExtractor operation.
|
||
|
|
///
|
||
|
|
/// \param args Inputs of ExperimentalDetectronROIFeatureExtractor
|
||
|
|
/// \param attrs Operation attributes
|
||
|
|
ExperimentalDetectronROIFeatureExtractor(const OutputVector& args, const Attributes& attrs);
|
||
|
|
|
||
|
|
/// \brief Constructs a ExperimentalDetectronROIFeatureExtractor operation.
|
||
|
|
///
|
||
|
|
/// \param args Inputs of ExperimentalDetectronROIFeatureExtractor
|
||
|
|
/// \param attrs Operation attributes
|
||
|
|
ExperimentalDetectronROIFeatureExtractor(const NodeVector& args, const Attributes& attrs);
|
||
|
|
bool visit_attributes(AttributeVisitor& visitor) override;
|
||
|
|
|
||
|
|
void validate_and_infer_types() override;
|
||
|
|
|
||
|
|
std::shared_ptr<Node> clone_with_new_inputs(const OutputVector& new_args) const override;
|
||
|
|
/// \brief Returns attributes of the operation.
|
||
|
|
const Attributes& get_attrs() const {
|
||
|
|
return m_attrs;
|
||
|
|
}
|
||
|
|
|
||
|
|
///@brief Set the ExperimentalDetectronROIFeatureExtractor's attributes.
|
||
|
|
///@param attrs Attributes to set.
|
||
|
|
void set_attrs(Attributes attrs);
|
||
|
|
|
||
|
|
private:
|
||
|
|
Attributes m_attrs;
|
||
|
|
};
|
||
|
|
} // namespace v6
|
||
|
|
} // namespace op
|
||
|
|
} // namespace ov
|