Modify caused by remove version
Signed-off-by: Zhai, Xuejun <xuejun.zhai@intel.com>
This commit is contained in:
parent
bd0a9502f5
commit
61d265789d
@ -39,12 +39,12 @@ public:
|
||||
class Restriction {
|
||||
public:
|
||||
explicit Restriction(const bool versionIsRequired) : versionIsRequired(versionIsRequired) {}
|
||||
void add(const uint64_t version, const ngraph::pass::low_precision::PrecisionsRestriction::PrecisionsByPorts& precisions) {
|
||||
precisionsByVersion.emplace(version, precisions);
|
||||
void add(const std::string version_id, const ngraph::pass::low_precision::PrecisionsRestriction::PrecisionsByPorts& precisions) {
|
||||
precisionsByVersion.emplace(version_id, precisions);
|
||||
}
|
||||
|
||||
bool versionIsRequired;
|
||||
std::unordered_map<uint64_t, ngraph::pass::low_precision::PrecisionsRestriction::PrecisionsByPorts> precisionsByVersion;
|
||||
std::unordered_map<std::string, ngraph::pass::low_precision::PrecisionsRestriction::PrecisionsByPorts> precisionsByVersion;
|
||||
};
|
||||
|
||||
OPENVINO_RTTI("MarkupPrecisions", "0");
|
||||
|
@ -37,12 +37,12 @@ public:
|
||||
class PerTensorQuantization {
|
||||
public:
|
||||
explicit PerTensorQuantization(const bool versionIsRequired) : versionIsRequired(versionIsRequired) {}
|
||||
void add(const uint64_t version, const std::vector<PortQuantizationGranularityRestriction>& restrictions) {
|
||||
portsByVersion.emplace(version, restrictions);
|
||||
void add(const std::string version_id, const std::vector<PortQuantizationGranularityRestriction>& restrictions) {
|
||||
portsByVersion.emplace(version_id, restrictions);
|
||||
}
|
||||
|
||||
bool versionIsRequired;
|
||||
std::unordered_map<uint64_t, std::vector<PortQuantizationGranularityRestriction>> portsByVersion;
|
||||
std::unordered_map<std::string, std::vector<PortQuantizationGranularityRestriction>> portsByVersion;
|
||||
};
|
||||
|
||||
OPENVINO_RTTI("MarkupPerTensorQuantization", "0");
|
||||
|
@ -23,7 +23,7 @@ namespace ngraph {
|
||||
*/
|
||||
class LP_TRANSFORMATIONS_API AvgPoolPrecisionPreservedAttribute : public PrecisionPreservedAttribute {
|
||||
public:
|
||||
OPENVINO_RTTI("LowPrecision::AvgPoolPrecisionPreserved", "", ov::RuntimeAttribute, 0);
|
||||
OPENVINO_RTTI("LowPrecision::AvgPoolPrecisionPreserved", "", ov::RuntimeAttribute);
|
||||
using PrecisionPreservedAttribute::PrecisionPreservedAttribute;
|
||||
void merge_attributes(std::vector<ov::Any>& attributes);
|
||||
bool is_skipped() const;
|
||||
|
@ -58,7 +58,7 @@ public:
|
||||
*/
|
||||
class LP_TRANSFORMATIONS_API IntervalsAlignmentAttribute : public SharedAttribute<IntervalsAlignmentSharedValue> {
|
||||
public:
|
||||
OPENVINO_RTTI("LowPrecision::IntervalsAlignment", "", ov::RuntimeAttribute, 0);
|
||||
OPENVINO_RTTI("LowPrecision::IntervalsAlignment", "", ov::RuntimeAttribute);
|
||||
IntervalsAlignmentAttribute() = default;
|
||||
IntervalsAlignmentAttribute(IntervalsAlignmentSharedValue::Interval combinedInterval, size_t levels);
|
||||
IntervalsAlignmentAttribute(
|
||||
|
@ -22,7 +22,7 @@ namespace ngraph {
|
||||
*/
|
||||
class LP_TRANSFORMATIONS_API PrecisionPreservedAttribute : public SharedAttribute<bool> {
|
||||
public:
|
||||
OPENVINO_RTTI("LowPrecision::PrecisionPreserved", "", ov::RuntimeAttribute, 0);
|
||||
OPENVINO_RTTI("LowPrecision::PrecisionPreserved", "", ov::RuntimeAttribute);
|
||||
|
||||
PrecisionPreservedAttribute() = default;
|
||||
PrecisionPreservedAttribute(const bool value);
|
||||
|
@ -26,7 +26,7 @@ namespace ngraph {
|
||||
*/
|
||||
class LP_TRANSFORMATIONS_API PrecisionsAttribute : public SharedAttribute<std::vector<ngraph::element::Type>> {
|
||||
public:
|
||||
OPENVINO_RTTI("LowPrecision::Precisions", "", ov::RuntimeAttribute, 0);
|
||||
OPENVINO_RTTI("LowPrecision::Precisions", "", ov::RuntimeAttribute);
|
||||
PrecisionsAttribute(const std::vector<ngraph::element::Type>& precisions);
|
||||
|
||||
static ov::Any create(
|
||||
|
@ -27,7 +27,7 @@ namespace ngraph {
|
||||
*/
|
||||
class LP_TRANSFORMATIONS_API QuantizationAlignmentAttribute : public SharedAttribute<bool> {
|
||||
public:
|
||||
OPENVINO_RTTI("LowPrecision::QuantizationAlignment", "", ov::RuntimeAttribute, 0);
|
||||
OPENVINO_RTTI("LowPrecision::QuantizationAlignment", "", ov::RuntimeAttribute);
|
||||
QuantizationAlignmentAttribute(const bool value = false);
|
||||
|
||||
static ov::Any create(
|
||||
|
@ -22,7 +22,7 @@ namespace ngraph {
|
||||
*/
|
||||
class LP_TRANSFORMATIONS_API QuantizationGranularityAttribute : public ov::RuntimeAttribute {
|
||||
public:
|
||||
OPENVINO_RTTI("LowPrecision::QuantizationGranularity", "", ov::RuntimeAttribute, 0);
|
||||
OPENVINO_RTTI("LowPrecision::QuantizationGranularity", "", ov::RuntimeAttribute);
|
||||
|
||||
enum class Granularity {
|
||||
PerChannel,
|
||||
|
@ -12,7 +12,7 @@ namespace ngraph {
|
||||
|
||||
class LP_TRANSFORMATIONS_API QuantizationModeAttribute : public ov::RuntimeAttribute {
|
||||
public:
|
||||
OPENVINO_RTTI("LowPrecision::QuantizationModeAttribute", "", ov::RuntimeAttribute, 0);
|
||||
OPENVINO_RTTI("LowPrecision::QuantizationModeAttribute", "", ov::RuntimeAttribute);
|
||||
|
||||
enum class Mode {
|
||||
Asymmetric,
|
||||
|
@ -11,7 +11,7 @@
|
||||
namespace ngraph {
|
||||
class LP_TRANSFORMATIONS_API SkipCleanupAttribute : public ov::RuntimeAttribute {
|
||||
public:
|
||||
OPENVINO_RTTI("LowPrecision::SkipCleanup", "", ov::RuntimeAttribute, 0);
|
||||
OPENVINO_RTTI("LowPrecision::SkipCleanup", "", ov::RuntimeAttribute);
|
||||
static ov::Any create(const std::shared_ptr<ngraph::Node>& node);
|
||||
};
|
||||
} // namespace ngraph
|
||||
|
@ -30,10 +30,10 @@ ngraph::pass::low_precision::MarkupPrecisions::MarkupPrecisions(
|
||||
OPENVINO_SUPPRESS_DEPRECATED_START
|
||||
if (it == restrictionsByOperation.end()) {
|
||||
Restriction r(restriction.specifyVersion);
|
||||
r.precisionsByVersion.emplace(restriction.operationType.version, restriction.precisionsByPorts);
|
||||
r.precisionsByVersion.emplace(restriction.operationType.version_id, restriction.precisionsByPorts);
|
||||
restrictionsByOperation.emplace(restriction.operationType.name, r);
|
||||
} else {
|
||||
it->second.add(restriction.operationType.version, restriction.precisionsByPorts);
|
||||
it->second.add(restriction.operationType.version_id, restriction.precisionsByPorts);
|
||||
}
|
||||
OPENVINO_SUPPRESS_DEPRECATED_END
|
||||
}
|
||||
@ -108,9 +108,7 @@ bool ngraph::pass::low_precision::MarkupPrecisions::run_on_model(const std::shar
|
||||
if (it != restrictionsByOperation.end()) {
|
||||
const Restriction& r = it->second;
|
||||
if (r.versionIsRequired) {
|
||||
OPENVINO_SUPPRESS_DEPRECATED_START
|
||||
const auto it2 = r.precisionsByVersion.find(typeInfo.version);
|
||||
OPENVINO_SUPPRESS_DEPRECATED_END
|
||||
const auto it2 = r.precisionsByVersion.find(typeInfo.version_id);
|
||||
if (it2 == r.precisionsByVersion.end()) {
|
||||
continue;
|
||||
}
|
||||
|
@ -20,10 +20,10 @@ ngraph::pass::low_precision::MarkupQuantizationGranularity::MarkupQuantizationGr
|
||||
OPENVINO_SUPPRESS_DEPRECATED_START
|
||||
if (it == restrictionsByOperation.end()) {
|
||||
PerTensorQuantization r(restriction.specifyVersion);
|
||||
r.portsByVersion.emplace(restriction.operationType.version, restriction.restrictions);
|
||||
r.portsByVersion.emplace(restriction.operationType.version_id, restriction.restrictions);
|
||||
restrictionsByOperation.emplace(restriction.operationType.name, r);
|
||||
} else {
|
||||
it->second.add(restriction.operationType.version, restriction.restrictions);
|
||||
it->second.add(restriction.operationType.version_id, restriction.restrictions);
|
||||
}
|
||||
OPENVINO_SUPPRESS_DEPRECATED_END
|
||||
}
|
||||
@ -74,9 +74,7 @@ bool ngraph::pass::low_precision::MarkupQuantizationGranularity::run_on_model(co
|
||||
}
|
||||
|
||||
if (restriction.versionIsRequired) {
|
||||
OPENVINO_SUPPRESS_DEPRECATED_START
|
||||
const auto it2 = restriction.portsByVersion.find(node->get_type_info().version);
|
||||
OPENVINO_SUPPRESS_DEPRECATED_END
|
||||
const auto it2 = restriction.portsByVersion.find(node->get_type_info().version_id);
|
||||
if (it2 == restriction.portsByVersion.end()) {
|
||||
continue;
|
||||
}
|
||||
|
@ -28,7 +28,7 @@ namespace ngraph {
|
||||
class Mask : public std::vector<std::set<uint64_t>>, public std::enable_shared_from_this<Mask> {
|
||||
public:
|
||||
static const ::ov::DiscreteTypeInfo& get_type_info_static() {
|
||||
static const ::ov::DiscreteTypeInfo type_info_static{"Mask", 0, "0"};
|
||||
static const ::ov::DiscreteTypeInfo type_info_static{"Mask", "0"};
|
||||
return type_info_static;
|
||||
}
|
||||
|
||||
|
@ -17,7 +17,7 @@
|
||||
#include "snippets/utils.hpp"
|
||||
#include "snippets/itt.hpp"
|
||||
|
||||
NGRAPH_RTTI_DEFINITION(ngraph::snippets::pass::CommonOptimizations, "Snippets::CommonOptimizations", 0);
|
||||
NGRAPH_RTTI_DEFINITION(ngraph::snippets::pass::CommonOptimizations, "Snippets::CommonOptimizations");
|
||||
|
||||
namespace ngraph {
|
||||
namespace snippets {
|
||||
|
@ -29,14 +29,11 @@ namespace internal {
|
||||
template <typename BaseNmsOp>
|
||||
class NmsStaticShapeIE : public BaseNmsOp {
|
||||
public:
|
||||
OPENVINO_SUPPRESS_DEPRECATED_START
|
||||
// TODO: it should be std::string("NmsStaticShapeIE_") + BaseNmsOp::get_type_info_static().name,
|
||||
// but currently it does not pass conversion to Legacy Opset correctly
|
||||
OPENVINO_RTTI(BaseNmsOp::get_type_info_static().name,
|
||||
"ie_internal_opset",
|
||||
BaseNmsOp,
|
||||
BaseNmsOp::get_type_info_static().version);
|
||||
OPENVINO_SUPPRESS_DEPRECATED_END
|
||||
BaseNmsOp);
|
||||
|
||||
NmsStaticShapeIE() = default;
|
||||
|
||||
|
@ -191,8 +191,7 @@ class TypeRelaxed : public BaseOp, public TypeRelaxedBase {
|
||||
public:
|
||||
OPENVINO_OP(BaseOp::get_type_info_static().name,
|
||||
BaseOp::get_type_info_static().version_id,
|
||||
BaseOp,
|
||||
BaseOp::get_type_info_static().version);
|
||||
BaseOp);
|
||||
|
||||
using BaseOp::BaseOp;
|
||||
|
||||
|
@ -201,7 +201,7 @@ TEST(TransformationTests, CompareFunctoinsTINegative) {
|
||||
const auto fc = FunctionsComparator::with_default().enable(FunctionsComparator::ATTRIBUTES);
|
||||
auto res = fc(f, f_ref);
|
||||
EXPECT_FALSE(res.valid);
|
||||
EXPECT_THAT(res.message, HasSubstr("LSTMCell/4 != Relu/0"));
|
||||
EXPECT_THAT(res.message, HasSubstr("LSTMCell/opset4 != Relu/opset1"));
|
||||
}
|
||||
|
||||
TEST(TransformationTests, CompareFunctoinsTINegativeDifferentElementTypeBetweenSubGraphsInputs) {
|
||||
@ -514,7 +514,7 @@ public:
|
||||
DummyConstant& operator=(const DummyConstant&) = delete;
|
||||
|
||||
const NodeTypeInfo& get_type_info() const override {
|
||||
static const NodeTypeInfo type_info{typeid(this).name(), static_cast<uint64_t>(0)};
|
||||
static const NodeTypeInfo type_info{typeid(this).name(), "0"};
|
||||
return type_info;
|
||||
}
|
||||
|
||||
|
@ -150,18 +150,17 @@ using ov::check_new_args_count;
|
||||
}
|
||||
#endif
|
||||
|
||||
#define _NGRAPH_RTTI_DEFINITION_WITH_PARENT(CLASS, TYPE_NAME, _VERSION_INDEX, PARENT_CLASS) \
|
||||
#define _NGRAPH_RTTI_DEFINITION_WITH_PARENT(CLASS, TYPE_NAME, PARENT_CLASS) \
|
||||
const ::ngraph::Node::type_info_t& CLASS::get_type_info_static() { \
|
||||
static const ::ngraph::Node::type_info_t type_info_static{TYPE_NAME, \
|
||||
static_cast<uint64_t>(_VERSION_INDEX), \
|
||||
&PARENT_CLASS::get_type_info_static()}; \
|
||||
return type_info_static; \
|
||||
} \
|
||||
_NGRAPH_RTTI_DEFINITION_COMMON(CLASS)
|
||||
|
||||
#define _NGRAPH_RTTI_DEFINITION_NO_PARENT(CLASS, TYPE_NAME, _VERSION_INDEX) \
|
||||
#define _NGRAPH_RTTI_DEFINITION_NO_PARENT(CLASS, TYPE_NAME) \
|
||||
const ::ngraph::Node::type_info_t& CLASS::get_type_info_static() { \
|
||||
static const ::ngraph::Node::type_info_t type_info_static{TYPE_NAME, static_cast<uint64_t>(_VERSION_INDEX)}; \
|
||||
static const ::ngraph::Node::type_info_t type_info_static{TYPE_NAME}; \
|
||||
return type_info_static; \
|
||||
} \
|
||||
_NGRAPH_RTTI_DEFINITION_COMMON(CLASS)
|
||||
|
@ -47,7 +47,7 @@ class OPENVINO_API Model : public std::enable_shared_from_this<Model> {
|
||||
|
||||
public:
|
||||
_OPENVINO_HIDDEN_METHOD static const ::ov::DiscreteTypeInfo& get_type_info_static() {
|
||||
static const ::ov::DiscreteTypeInfo type_info_static{"Model", static_cast<uint64_t>(0)};
|
||||
static const ::ov::DiscreteTypeInfo type_info_static{"Model"};
|
||||
return type_info_static;
|
||||
}
|
||||
const ::ov::DiscreteTypeInfo& get_type_info() const {
|
||||
|
@ -409,12 +409,8 @@ public:
|
||||
/// Get all the nodes that uses the current node
|
||||
NodeVector get_users(bool check_is_used = false) const;
|
||||
|
||||
/// \return Version of this node
|
||||
OPENVINO_DEPRECATED("This method is deprecated and will be removed soon.")
|
||||
virtual size_t get_version() const {
|
||||
OPENVINO_SUPPRESS_DEPRECATED_START
|
||||
return get_type_info().version;
|
||||
OPENVINO_SUPPRESS_DEPRECATED_END
|
||||
virtual std::shared_ptr<Node> get_default_value() const {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
/// Use instance ids for comparison instead of memory addresses to improve determinism
|
||||
|
@ -8,13 +8,13 @@
|
||||
#include "openvino/core/visibility.hpp"
|
||||
|
||||
#define _OPENVINO_RTTI_EXPAND(X) X
|
||||
#define _OPENVINO_RTTI_DEFINITION_SELECTOR(_1, _2, _3, _4, NAME, ...) NAME
|
||||
#define _OPENVINO_RTTI_DEFINITION_SELECTOR(_1, _2, _3, NAME, ...) NAME
|
||||
|
||||
#define _OPENVINO_RTTI_WITH_TYPE(TYPE_NAME) _OPENVINO_RTTI_WITH_TYPE_VERSION(TYPE_NAME, "util")
|
||||
|
||||
#define _OPENVINO_RTTI_WITH_TYPE_VERSION(TYPE_NAME, VERSION_NAME) \
|
||||
_OPENVINO_HIDDEN_METHOD static const ::ov::DiscreteTypeInfo& get_type_info_static() { \
|
||||
static ::ov::DiscreteTypeInfo type_info_static{TYPE_NAME, 0, VERSION_NAME}; \
|
||||
static ::ov::DiscreteTypeInfo type_info_static{TYPE_NAME, VERSION_NAME}; \
|
||||
type_info_static.hash(); \
|
||||
return type_info_static; \
|
||||
} \
|
||||
@ -23,12 +23,11 @@
|
||||
}
|
||||
|
||||
#define _OPENVINO_RTTI_WITH_TYPE_VERSION_PARENT(TYPE_NAME, VERSION_NAME, PARENT_CLASS) \
|
||||
_OPENVINO_RTTI_WITH_TYPE_VERSIONS_PARENT(TYPE_NAME, VERSION_NAME, PARENT_CLASS, 0)
|
||||
_OPENVINO_RTTI_WITH_TYPE_VERSIONS_PARENT(TYPE_NAME, VERSION_NAME, PARENT_CLASS)
|
||||
|
||||
#define _OPENVINO_RTTI_WITH_TYPE_VERSIONS_PARENT(TYPE_NAME, VERSION_NAME, PARENT_CLASS, OLD_VERSION) \
|
||||
#define _OPENVINO_RTTI_WITH_TYPE_VERSIONS_PARENT(TYPE_NAME, VERSION_NAME, PARENT_CLASS) \
|
||||
_OPENVINO_HIDDEN_METHOD static const ::ov::DiscreteTypeInfo& get_type_info_static() { \
|
||||
static ::ov::DiscreteTypeInfo type_info_static{TYPE_NAME, \
|
||||
OLD_VERSION, \
|
||||
VERSION_NAME, \
|
||||
&PARENT_CLASS::get_type_info_static()}; \
|
||||
type_info_static.hash(); \
|
||||
@ -94,7 +93,6 @@
|
||||
/// OPENVINO_RTTI(name, version_id, parent, old_version)
|
||||
#define OPENVINO_RTTI(...) \
|
||||
_OPENVINO_RTTI_EXPAND(_OPENVINO_RTTI_DEFINITION_SELECTOR(__VA_ARGS__, \
|
||||
_OPENVINO_RTTI_WITH_TYPE_VERSIONS_PARENT, \
|
||||
_OPENVINO_RTTI_WITH_TYPE_VERSION_PARENT, \
|
||||
_OPENVINO_RTTI_WITH_TYPE_VERSION, \
|
||||
_OPENVINO_RTTI_WITH_TYPE)(__VA_ARGS__))
|
||||
|
@ -20,7 +20,7 @@ class Any;
|
||||
class OPENVINO_API RuntimeAttribute {
|
||||
public:
|
||||
_OPENVINO_HIDDEN_METHOD static const DiscreteTypeInfo& get_type_info_static() {
|
||||
static const ::ov::DiscreteTypeInfo type_info_static{"RuntimeAttribute", static_cast<uint64_t>(0)};
|
||||
static const ::ov::DiscreteTypeInfo type_info_static{"RuntimeAttribute"};
|
||||
return type_info_static;
|
||||
}
|
||||
virtual const DiscreteTypeInfo& get_type_info() const {
|
||||
|
@ -30,14 +30,11 @@ namespace ov {
|
||||
*/
|
||||
struct OPENVINO_API DiscreteTypeInfo {
|
||||
const char* name;
|
||||
OPENVINO_DEPRECATED("This member was deprecated. Please use version_id instead.")
|
||||
uint64_t version;
|
||||
const char* version_id;
|
||||
// A pointer to a parent type info; used for casting and inheritance traversal, not for
|
||||
// exact type identification
|
||||
const DiscreteTypeInfo* parent;
|
||||
|
||||
OPENVINO_SUPPRESS_DEPRECATED_START
|
||||
DiscreteTypeInfo() = default;
|
||||
DiscreteTypeInfo(const DiscreteTypeInfo&) = default;
|
||||
DiscreteTypeInfo(DiscreteTypeInfo&&) = default;
|
||||
@ -47,29 +44,16 @@ struct OPENVINO_API DiscreteTypeInfo {
|
||||
const char* _version_id,
|
||||
const DiscreteTypeInfo* _parent = nullptr)
|
||||
: name(_name),
|
||||
version(0),
|
||||
version_id(_version_id),
|
||||
parent(_parent),
|
||||
hash_value(0) {}
|
||||
|
||||
constexpr DiscreteTypeInfo(const char* _name, uint64_t _version, const DiscreteTypeInfo* _parent = nullptr)
|
||||
constexpr DiscreteTypeInfo(const char* _name, const DiscreteTypeInfo* _parent = nullptr)
|
||||
: name(_name),
|
||||
version(_version),
|
||||
version_id(nullptr),
|
||||
parent(_parent),
|
||||
hash_value(0) {}
|
||||
|
||||
constexpr DiscreteTypeInfo(const char* _name,
|
||||
uint64_t _version,
|
||||
const char* _version_id,
|
||||
const DiscreteTypeInfo* _parent = nullptr)
|
||||
: name(_name),
|
||||
version(_version),
|
||||
version_id(_version_id),
|
||||
parent(_parent),
|
||||
hash_value(0) {}
|
||||
OPENVINO_SUPPRESS_DEPRECATED_END
|
||||
|
||||
bool is_castable(const DiscreteTypeInfo& target_type) const;
|
||||
|
||||
std::string get_version() const;
|
||||
|
@ -16,7 +16,7 @@ namespace v3 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API Acosh : public util::UnaryElementwiseArithmetic {
|
||||
public:
|
||||
OPENVINO_OP("Acosh", "opset4", util::UnaryElementwiseArithmetic, 3);
|
||||
OPENVINO_OP("Acosh", "opset4", util::UnaryElementwiseArithmetic);
|
||||
|
||||
/// \brief Constructs an Acosh operation.
|
||||
Acosh() = default;
|
||||
|
@ -16,7 +16,7 @@ namespace v1 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API Add : public util::BinaryElementwiseArithmetic {
|
||||
public:
|
||||
OPENVINO_OP("Add", "opset1", util::BinaryElementwiseArithmetic, 1);
|
||||
OPENVINO_OP("Add", "opset1", util::BinaryElementwiseArithmetic);
|
||||
|
||||
/// \brief Constructs an uninitialized addition operation
|
||||
Add() : util::BinaryElementwiseArithmetic(AutoBroadcastType::NUMPY) {}
|
||||
|
@ -15,7 +15,7 @@ namespace v3 {
|
||||
///
|
||||
class OPENVINO_API Asinh : public util::UnaryElementwiseArithmetic {
|
||||
public:
|
||||
OPENVINO_OP("Asinh", "opset4", util::UnaryElementwiseArithmetic, 3);
|
||||
OPENVINO_OP("Asinh", "opset4", util::UnaryElementwiseArithmetic);
|
||||
|
||||
/// \brief Constructs an Asinh operation.
|
||||
Asinh() = default;
|
||||
|
@ -14,7 +14,7 @@ namespace v3 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API Assign : public util::AssignBase {
|
||||
public:
|
||||
OPENVINO_OP("Assign", "opset3", util::AssignBase, 3);
|
||||
OPENVINO_OP("Assign", "opset3", util::AssignBase);
|
||||
Assign() = default;
|
||||
|
||||
/// \brief Constructs an Assign operation.
|
||||
@ -44,7 +44,7 @@ namespace v6 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API Assign : public util::AssignBase {
|
||||
public:
|
||||
OPENVINO_OP("Assign", "opset6", util::AssignBase, 6);
|
||||
OPENVINO_OP("Assign", "opset6", util::AssignBase);
|
||||
Assign() = default;
|
||||
|
||||
/// \brief Constructs an Assign operation.
|
||||
|
@ -16,7 +16,7 @@ namespace v3 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API Atanh : public util::UnaryElementwiseArithmetic {
|
||||
public:
|
||||
OPENVINO_OP("Atanh", "opset4", util::UnaryElementwiseArithmetic, 3);
|
||||
OPENVINO_OP("Atanh", "opset4", util::UnaryElementwiseArithmetic);
|
||||
|
||||
/// \brief Constructs an Atanh operation.
|
||||
Atanh() = default;
|
||||
|
@ -14,7 +14,7 @@ namespace v1 {
|
||||
///
|
||||
class OPENVINO_API AvgPool : public Op {
|
||||
public:
|
||||
OPENVINO_OP("AvgPool", "opset1", op::Op, 1);
|
||||
OPENVINO_OP("AvgPool", "opset1", op::Op);
|
||||
|
||||
/// \brief Constructs a batched average pooling operation.
|
||||
AvgPool() = default;
|
||||
|
@ -59,7 +59,7 @@ namespace v5 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API BatchNormInference : public Op {
|
||||
public:
|
||||
OPENVINO_OP("BatchNormInference", "opset5", op::Op, 5);
|
||||
OPENVINO_OP("BatchNormInference", "opset5", op::Op);
|
||||
BatchNormInference() = default;
|
||||
/// \param input [., C, ...]
|
||||
/// \param gamma gamma scaling for normalized value. [C]
|
||||
|
@ -23,7 +23,7 @@ namespace v1 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API BatchToSpace : public Op {
|
||||
public:
|
||||
OPENVINO_OP("BatchToSpace", "opset2", op::Op, 1);
|
||||
OPENVINO_OP("BatchToSpace", "opset2", op::Op);
|
||||
BatchToSpace() = default;
|
||||
/// \brief Constructs a BatchToSpace operation.
|
||||
///
|
||||
|
@ -16,7 +16,7 @@ namespace v1 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API BinaryConvolution : public Op {
|
||||
public:
|
||||
OPENVINO_OP("BinaryConvolution", "opset1", op::Op, 1);
|
||||
OPENVINO_OP("BinaryConvolution", "opset1", op::Op);
|
||||
|
||||
enum class BinaryConvolutionMode {
|
||||
// Interpret input data and kernel values: 0 as -1, 1 as 1
|
||||
|
@ -17,7 +17,7 @@ namespace v3 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API Broadcast : public util::BroadcastBase {
|
||||
public:
|
||||
OPENVINO_OP("Broadcast", "opset3", op::util::BroadcastBase, 3);
|
||||
OPENVINO_OP("Broadcast", "opset3", op::util::BroadcastBase);
|
||||
|
||||
/// \brief Constructs a broadcast operation.
|
||||
Broadcast() = default;
|
||||
@ -81,7 +81,7 @@ namespace v1 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API Broadcast : public util::BroadcastBase {
|
||||
public:
|
||||
OPENVINO_OP("Broadcast", "opset1", op::util::BroadcastBase, 1);
|
||||
OPENVINO_OP("Broadcast", "opset1", op::util::BroadcastBase);
|
||||
|
||||
/// \brief Constructs a broadcast operation.
|
||||
Broadcast() = default;
|
||||
|
@ -13,7 +13,7 @@ namespace v3 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API Bucketize : public Op {
|
||||
public:
|
||||
OPENVINO_OP("Bucketize", "opset3", op::Op, 3);
|
||||
OPENVINO_OP("Bucketize", "opset3", op::Op);
|
||||
|
||||
Bucketize() = default;
|
||||
/// \brief Constructs a Bucketize node
|
||||
|
@ -13,7 +13,7 @@ namespace v1 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API ConvertLike : public Op {
|
||||
public:
|
||||
OPENVINO_OP("ConvertLike", "opset1", op::Op, 1);
|
||||
OPENVINO_OP("ConvertLike", "opset1", op::Op);
|
||||
|
||||
/// \brief Constructs a conversion operation.
|
||||
ConvertLike() = default;
|
||||
|
@ -16,7 +16,7 @@ namespace v1 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API Convolution : public Op {
|
||||
public:
|
||||
OPENVINO_OP("Convolution", "opset1", op::Op, 1);
|
||||
OPENVINO_OP("Convolution", "opset1", op::Op);
|
||||
|
||||
/// \brief Constructs a batched convolution operation.
|
||||
Convolution() = default;
|
||||
@ -129,7 +129,7 @@ private:
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API ConvolutionBackpropData : public Op {
|
||||
public:
|
||||
OPENVINO_OP("ConvolutionBackpropData", "opset1", op::Op, 1);
|
||||
OPENVINO_OP("ConvolutionBackpropData", "opset1", op::Op);
|
||||
|
||||
/// \brief Constructs a batched-convolution data batch-backprop operation.
|
||||
ConvolutionBackpropData() = default;
|
||||
|
@ -14,7 +14,7 @@ namespace v6 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API CTCGreedyDecoderSeqLen : public Op {
|
||||
public:
|
||||
OPENVINO_OP("CTCGreedyDecoderSeqLen", "opset6", op::Op, 6);
|
||||
OPENVINO_OP("CTCGreedyDecoderSeqLen", "opset6", op::Op);
|
||||
CTCGreedyDecoderSeqLen() = default;
|
||||
/// \brief Constructs a CTCGreedyDecoderSeqLen operation
|
||||
///
|
||||
|
@ -14,7 +14,7 @@ namespace v4 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API CTCLoss : public Op {
|
||||
public:
|
||||
OPENVINO_OP("CTCLoss", "opset4", op::Op, 4);
|
||||
OPENVINO_OP("CTCLoss", "opset4", op::Op);
|
||||
|
||||
CTCLoss() = default;
|
||||
/// \brief Constructs a CTCLoss operation
|
||||
|
@ -16,7 +16,7 @@ namespace v1 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API DeformableConvolution : public op::util::DeformableConvolutionBase {
|
||||
public:
|
||||
OPENVINO_OP("DeformableConvolution", "opset1", op::util::DeformableConvolutionBase, 1);
|
||||
OPENVINO_OP("DeformableConvolution", "opset1", op::util::DeformableConvolutionBase);
|
||||
|
||||
/// \brief Constructs a conversion operation.
|
||||
DeformableConvolution() = default;
|
||||
|
@ -14,7 +14,7 @@ namespace v1 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API DeformablePSROIPooling : public Op {
|
||||
public:
|
||||
OPENVINO_OP("DeformablePSROIPooling", "opset1", op::Op, 1);
|
||||
OPENVINO_OP("DeformablePSROIPooling", "opset1", op::Op);
|
||||
|
||||
DeformablePSROIPooling() = default;
|
||||
/// \brief Constructs a DeformablePSROIPooling operation
|
||||
|
@ -29,7 +29,7 @@ namespace v7 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API DFT : public util::FFTBase {
|
||||
public:
|
||||
OPENVINO_OP("DFT", "opset7", util::FFTBase, 7);
|
||||
OPENVINO_OP("DFT", "opset7", util::FFTBase);
|
||||
DFT() = default;
|
||||
|
||||
/// \brief Constructs a DFT operation. DFT is performed for full size axes.
|
||||
|
@ -13,7 +13,7 @@ namespace v1 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API Divide : public util::BinaryElementwiseArithmetic {
|
||||
public:
|
||||
OPENVINO_OP("Divide", "opset1", util::BinaryElementwiseArithmetic, 1);
|
||||
OPENVINO_OP("Divide", "opset1", util::BinaryElementwiseArithmetic);
|
||||
/// \brief Constructs a division operation.
|
||||
Divide() : util::BinaryElementwiseArithmetic(AutoBroadcastType::NUMPY) {}
|
||||
|
||||
|
@ -13,7 +13,7 @@ namespace v7 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API Einsum : public Op {
|
||||
public:
|
||||
OPENVINO_OP("Einsum", "opset7", op::Op, 7);
|
||||
OPENVINO_OP("Einsum", "opset7", op::Op);
|
||||
|
||||
Einsum() = default;
|
||||
|
||||
|
@ -14,7 +14,7 @@ namespace v3 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API EmbeddingSegmentsSum : public Op {
|
||||
public:
|
||||
OPENVINO_OP("EmbeddingSegmentsSum", "opset3", op::Op, 3);
|
||||
OPENVINO_OP("EmbeddingSegmentsSum", "opset3", op::Op);
|
||||
/// \brief Constructs a EmbeddingSegmentsSum operation.
|
||||
EmbeddingSegmentsSum() = default;
|
||||
/// \brief Constructs a EmbeddingSegmentsSum operation.
|
||||
|
@ -15,7 +15,7 @@ namespace v3 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API EmbeddingBagOffsetsSum : public util::EmbeddingBagOffsetsBase {
|
||||
public:
|
||||
OPENVINO_OP("EmbeddingBagOffsetsSum", "opset3", util::EmbeddingBagOffsetsBase, 3);
|
||||
OPENVINO_OP("EmbeddingBagOffsetsSum", "opset3", util::EmbeddingBagOffsetsBase);
|
||||
/// \brief Constructs a EmbeddingBagOffsetsSum operation.
|
||||
EmbeddingBagOffsetsSum() = default;
|
||||
/// \brief Constructs a EmbeddingBagOffsetsSum operation.
|
||||
|
@ -15,7 +15,7 @@ namespace v3 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API EmbeddingBagPackedSum : public util::EmbeddingBagPackedBase {
|
||||
public:
|
||||
OPENVINO_OP("EmbeddingBagPackedSum", "opset3", util::EmbeddingBagPackedBase, 3);
|
||||
OPENVINO_OP("EmbeddingBagPackedSum", "opset3", util::EmbeddingBagPackedBase);
|
||||
/// \brief Constructs a EmbeddingBagPackedSum operation.
|
||||
EmbeddingBagPackedSum() = default;
|
||||
/// \brief Constructs a EmbeddingBagPackedSum operation.
|
||||
|
@ -29,7 +29,7 @@ namespace v1 {
|
||||
// clang-format on
|
||||
class OPENVINO_API Equal : public util::BinaryElementwiseComparison {
|
||||
public:
|
||||
OPENVINO_OP("Equal", "opset1", op::util::BinaryElementwiseComparison, 1);
|
||||
OPENVINO_OP("Equal", "opset1", op::util::BinaryElementwiseComparison);
|
||||
/// \brief Constructs an equal operation.
|
||||
Equal() : util::BinaryElementwiseComparison(AutoBroadcastType::NUMPY) {}
|
||||
/// \brief Constructs an equal operation.
|
||||
|
@ -20,7 +20,7 @@ namespace v6 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API ExperimentalDetectronDetectionOutput : public Op {
|
||||
public:
|
||||
OPENVINO_OP("ExperimentalDetectronDetectionOutput", "opset6", op::Op, 6);
|
||||
OPENVINO_OP("ExperimentalDetectronDetectionOutput", "opset6", op::Op);
|
||||
|
||||
/// \brief Structure that specifies attributes of the operation
|
||||
struct Attributes {
|
||||
|
@ -19,7 +19,7 @@ namespace v6 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API ExperimentalDetectronGenerateProposalsSingleImage : public Op {
|
||||
public:
|
||||
OPENVINO_OP("ExperimentalDetectronGenerateProposalsSingleImage", "opset6", op::Op, 6);
|
||||
OPENVINO_OP("ExperimentalDetectronGenerateProposalsSingleImage", "opset6", op::Op);
|
||||
|
||||
/// \brief Structure that specifies attributes of the operation
|
||||
struct Attributes {
|
||||
|
@ -19,7 +19,7 @@ namespace v6 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API ExperimentalDetectronPriorGridGenerator : public Op {
|
||||
public:
|
||||
OPENVINO_OP("ExperimentalDetectronPriorGridGenerator", "opset6", op::Op, 6);
|
||||
OPENVINO_OP("ExperimentalDetectronPriorGridGenerator", "opset6", op::Op);
|
||||
|
||||
/// \brief Structure that specifies attributes of the operation
|
||||
struct Attributes {
|
||||
|
@ -20,7 +20,7 @@ namespace v6 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API ExperimentalDetectronROIFeatureExtractor : public Op {
|
||||
public:
|
||||
OPENVINO_OP("ExperimentalDetectronROIFeatureExtractor", "opset6", op::Op, 6);
|
||||
OPENVINO_OP("ExperimentalDetectronROIFeatureExtractor", "opset6", op::Op);
|
||||
|
||||
/// \brief Structure that specifies attributes of the operation
|
||||
struct Attributes {
|
||||
|
@ -19,7 +19,7 @@ namespace v6 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API ExperimentalDetectronTopKROIs : public Op {
|
||||
public:
|
||||
OPENVINO_OP("ExperimentalDetectronTopKROIs", "opset6", op::Op, 6);
|
||||
OPENVINO_OP("ExperimentalDetectronTopKROIs", "opset6", op::Op);
|
||||
|
||||
ExperimentalDetectronTopKROIs() = default;
|
||||
/// \brief Constructs a ExperimentalDetectronTopKROIs operation.
|
||||
|
@ -14,7 +14,7 @@ namespace v3 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API ExtractImagePatches : public Op {
|
||||
public:
|
||||
OPENVINO_OP("ExtractImagePatches", "opset3", op::Op, 3);
|
||||
OPENVINO_OP("ExtractImagePatches", "opset3", op::Op);
|
||||
|
||||
ExtractImagePatches() = default;
|
||||
/// \brief Constructs a ExtractImagePatches operation
|
||||
|
@ -14,7 +14,7 @@ namespace v1 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API FloorMod : public util::BinaryElementwiseArithmetic {
|
||||
public:
|
||||
OPENVINO_OP("FloorMod", "opset1", op::util::BinaryElementwiseArithmetic, 1);
|
||||
OPENVINO_OP("FloorMod", "opset1", op::util::BinaryElementwiseArithmetic);
|
||||
|
||||
/// \brief Constructs an uninitialized addition operation
|
||||
FloorMod() : util::BinaryElementwiseArithmetic(AutoBroadcastType::NUMPY) {}
|
||||
|
@ -13,7 +13,7 @@ namespace v1 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API Gather : public op::util::GatherBase {
|
||||
public:
|
||||
OPENVINO_OP("Gather", "opset1", op::util::GatherBase, 1);
|
||||
OPENVINO_OP("Gather", "opset1", op::util::GatherBase);
|
||||
static constexpr int64_t AXIS_NOT_SET_VALUE = std::numeric_limits<int64_t>::max();
|
||||
Gather() = default;
|
||||
/// \param data The tensor from which slices are gathered
|
||||
@ -33,7 +33,7 @@ namespace v7 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API Gather : public op::util::GatherBase {
|
||||
public:
|
||||
OPENVINO_OP("Gather", "opset7", op::util::GatherBase, 7);
|
||||
OPENVINO_OP("Gather", "opset7", op::util::GatherBase);
|
||||
Gather() = default;
|
||||
|
||||
/// \param data The tensor from which slices are gathered
|
||||
|
@ -14,7 +14,7 @@ namespace v6 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API GatherElements : public Op {
|
||||
public:
|
||||
OPENVINO_OP("GatherElements", "opset6", op::Op, 6);
|
||||
OPENVINO_OP("GatherElements", "opset6", op::Op);
|
||||
GatherElements() = default;
|
||||
|
||||
/// \brief Constructs a GatherElements operation.
|
||||
|
@ -13,7 +13,7 @@ namespace v5 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API GatherND : public op::util::GatherNDBase {
|
||||
public:
|
||||
OPENVINO_OP("GatherND", "opset5", op::util::GatherNDBase, 5);
|
||||
OPENVINO_OP("GatherND", "opset5", op::util::GatherNDBase);
|
||||
GatherND() = default;
|
||||
|
||||
/// \brief Constructs a GatherND operation.
|
||||
|
@ -14,7 +14,7 @@ namespace v1 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API GatherTree : public Op {
|
||||
public:
|
||||
OPENVINO_OP("GatherTree", "opset1", op::Op, 1);
|
||||
OPENVINO_OP("GatherTree", "opset1", op::Op);
|
||||
|
||||
GatherTree() = default;
|
||||
/// \param step_ids Tensor of shape [MAX_TIME, BATCH_SIZE, BEAM_WIDTH] with
|
||||
|
@ -15,7 +15,7 @@ namespace v0 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API Gelu : public util::UnaryElementwiseArithmetic {
|
||||
public:
|
||||
OPENVINO_OP("Gelu", "opset2", util::UnaryElementwiseArithmetic, 0);
|
||||
OPENVINO_OP("Gelu", "opset2", util::UnaryElementwiseArithmetic);
|
||||
|
||||
Gelu();
|
||||
/// \brief Constructs a Gelu operation.
|
||||
@ -43,7 +43,7 @@ namespace v7 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API Gelu : public util::UnaryElementwiseArithmetic {
|
||||
public:
|
||||
OPENVINO_OP("Gelu", "opset7", util::UnaryElementwiseArithmetic, 7);
|
||||
OPENVINO_OP("Gelu", "opset7", util::UnaryElementwiseArithmetic);
|
||||
|
||||
Gelu() = default;
|
||||
/// \brief Constructs a Gelu operation.
|
||||
|
@ -13,7 +13,7 @@ namespace v1 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API Greater : public util::BinaryElementwiseComparison {
|
||||
public:
|
||||
OPENVINO_OP("Greater", "opset1", op::util::BinaryElementwiseComparison, 1);
|
||||
OPENVINO_OP("Greater", "opset1", op::util::BinaryElementwiseComparison);
|
||||
/// \brief Constructs a greater-than operation.
|
||||
Greater() : util::BinaryElementwiseComparison(AutoBroadcastType::NUMPY) {}
|
||||
/// \brief Constructs a greater-than operation.
|
||||
|
@ -13,7 +13,7 @@ namespace v1 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API GreaterEqual : public util::BinaryElementwiseComparison {
|
||||
public:
|
||||
OPENVINO_OP("GreaterEqual", "opset1", op::util::BinaryElementwiseComparison, 1);
|
||||
OPENVINO_OP("GreaterEqual", "opset1", op::util::BinaryElementwiseComparison);
|
||||
/// \brief Constructs a greater-than-or-equal operation.
|
||||
GreaterEqual() : util::BinaryElementwiseComparison(AutoBroadcastType::NUMPY) {}
|
||||
/// \brief Constructs a greater-than-or-equal operation.
|
||||
|
@ -14,7 +14,7 @@ namespace v1 {
|
||||
/// \brief Batched convolution operation, with optional window dilation and stride.
|
||||
class OPENVINO_API GroupConvolution : public Op {
|
||||
public:
|
||||
OPENVINO_OP("GroupConvolution", "opset1", op::Op, 1);
|
||||
OPENVINO_OP("GroupConvolution", "opset1", op::Op);
|
||||
|
||||
/// \brief Constructs a batched convolution operation.
|
||||
GroupConvolution() = default;
|
||||
@ -126,7 +126,7 @@ private:
|
||||
/// \brief Data batch backprop for batched convolution operation.
|
||||
class OPENVINO_API GroupConvolutionBackpropData : public Op {
|
||||
public:
|
||||
OPENVINO_OP("GroupConvolutionBackpropData", "opset1", op::Op, 1);
|
||||
OPENVINO_OP("GroupConvolutionBackpropData", "opset1", op::Op);
|
||||
|
||||
/// \brief Constructs a batched-convolution data batch-backprop operation.
|
||||
GroupConvolutionBackpropData();
|
||||
|
@ -24,7 +24,7 @@ namespace v3 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API GRUCell : public util::RNNCellBase {
|
||||
public:
|
||||
OPENVINO_OP("GRUCell", "opset3", op::util::RNNCellBase, 3);
|
||||
OPENVINO_OP("GRUCell", "opset3", op::util::RNNCellBase);
|
||||
GRUCell();
|
||||
///
|
||||
/// \brief Constructs GRUCell node.
|
||||
|
@ -19,7 +19,7 @@ namespace v5 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API GRUSequence : public util::RNNCellBase {
|
||||
public:
|
||||
OPENVINO_OP("GRUSequence", "opset5", op::Op, 5);
|
||||
OPENVINO_OP("GRUSequence", "opset5", op::Op);
|
||||
GRUSequence();
|
||||
|
||||
GRUSequence(const Output<Node>& X,
|
||||
|
@ -17,7 +17,7 @@ namespace v5 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API HSigmoid : public util::UnaryElementwiseArithmetic {
|
||||
public:
|
||||
OPENVINO_OP("HSigmoid", "opset5", op::util::UnaryElementwiseArithmetic, 5);
|
||||
OPENVINO_OP("HSigmoid", "opset5", op::util::UnaryElementwiseArithmetic);
|
||||
HSigmoid() = default;
|
||||
|
||||
/// \brief Constructs a HSigmoid operation.
|
||||
|
@ -17,7 +17,7 @@ namespace v4 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API HSwish : public util::UnaryElementwiseArithmetic {
|
||||
public:
|
||||
OPENVINO_OP("HSwish", "opset4", op::util::UnaryElementwiseArithmetic, 4);
|
||||
OPENVINO_OP("HSwish", "opset4", op::util::UnaryElementwiseArithmetic);
|
||||
HSwish() = default;
|
||||
|
||||
/// \brief Constructs a HSwish (hard version of Swish) operation.
|
||||
|
@ -17,7 +17,7 @@ namespace v7 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API IDFT : public util::FFTBase {
|
||||
public:
|
||||
OPENVINO_OP("IDFT", "opset7", util::FFTBase, 7);
|
||||
OPENVINO_OP("IDFT", "opset7", util::FFTBase);
|
||||
IDFT() = default;
|
||||
|
||||
/// \brief Constructs a IDFT operation. IDFT is performed for full size axes.
|
||||
|
@ -83,7 +83,7 @@ namespace v4 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API Interpolate : public util::InterpolateBase {
|
||||
public:
|
||||
OPENVINO_OP("Interpolate", "opset4", util::InterpolateBase, 4);
|
||||
OPENVINO_OP("Interpolate", "opset4", util::InterpolateBase);
|
||||
|
||||
Interpolate() = default;
|
||||
/// \brief Constructs a Interpolate operation without 'axes' input.
|
||||
@ -190,7 +190,7 @@ namespace v11 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API Interpolate : public util::InterpolateBase {
|
||||
public:
|
||||
OPENVINO_OP("Interpolate", "opset11", util::InterpolateBase, 11);
|
||||
OPENVINO_OP("Interpolate", "opset11", util::InterpolateBase);
|
||||
Interpolate() = default;
|
||||
/// \brief Constructs a Interpolate operation without 'axes' input.
|
||||
///
|
||||
|
@ -13,7 +13,7 @@ namespace v1 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API Less : public util::BinaryElementwiseComparison {
|
||||
public:
|
||||
OPENVINO_OP("Less", "opset1", op::util::BinaryElementwiseComparison, 1);
|
||||
OPENVINO_OP("Less", "opset1", op::util::BinaryElementwiseComparison);
|
||||
/// \brief Constructs a less-than operation.
|
||||
Less() : util::BinaryElementwiseComparison(AutoBroadcastType::NUMPY) {}
|
||||
/// \brief Constructs a less-than operation.
|
||||
|
@ -13,7 +13,7 @@ namespace v1 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API LessEqual : public util::BinaryElementwiseComparison {
|
||||
public:
|
||||
OPENVINO_OP("LessEqual", "opset1", op::util::BinaryElementwiseComparison, 1);
|
||||
OPENVINO_OP("LessEqual", "opset1", op::util::BinaryElementwiseComparison);
|
||||
/// \brief Constructs a less-than-or-equal operation.
|
||||
LessEqual() : util::BinaryElementwiseComparison(AutoBroadcastType::NUMPY) {}
|
||||
|
||||
|
@ -14,7 +14,7 @@ namespace v5 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API LogSoftmax : public Op {
|
||||
public:
|
||||
OPENVINO_OP("LogSoftmax", "opset5", op::Op, 5);
|
||||
OPENVINO_OP("LogSoftmax", "opset5", op::Op);
|
||||
LogSoftmax() = default;
|
||||
/// \brief Constructs a LogSoftmax operation.
|
||||
///
|
||||
|
@ -16,7 +16,7 @@ namespace v1 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API LogicalAnd : public util::BinaryElementwiseLogical {
|
||||
public:
|
||||
OPENVINO_OP("LogicalAnd", "opset1", util::BinaryElementwiseLogical, 1);
|
||||
OPENVINO_OP("LogicalAnd", "opset1", util::BinaryElementwiseLogical);
|
||||
/// \brief Constructs a logical-and operation.
|
||||
LogicalAnd() = default;
|
||||
|
||||
|
@ -13,7 +13,7 @@ namespace v1 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API LogicalNot : public Op {
|
||||
public:
|
||||
OPENVINO_OP("LogicalNot", "opset1", op::Op, 1);
|
||||
OPENVINO_OP("LogicalNot", "opset1", op::Op);
|
||||
/// \brief Constructs a logical negation operation.
|
||||
LogicalNot() = default;
|
||||
/// \brief Constructs a logical negation operation.
|
||||
|
@ -16,7 +16,7 @@ namespace v1 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API LogicalOr : public util::BinaryElementwiseLogical {
|
||||
public:
|
||||
OPENVINO_OP("LogicalOr", "opset1", util::BinaryElementwiseLogical, 1);
|
||||
OPENVINO_OP("LogicalOr", "opset1", util::BinaryElementwiseLogical);
|
||||
LogicalOr() = default;
|
||||
/// \brief Constructs a logical-or operation.
|
||||
///
|
||||
|
@ -16,7 +16,7 @@ namespace v1 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API LogicalXor : public util::BinaryElementwiseLogical {
|
||||
public:
|
||||
OPENVINO_OP("LogicalXor", "opset2", util::BinaryElementwiseLogical, 1);
|
||||
OPENVINO_OP("LogicalXor", "opset2", util::BinaryElementwiseLogical);
|
||||
LogicalXor() = default;
|
||||
/// \brief Constructs a logical-xor operation.
|
||||
///
|
||||
|
@ -31,7 +31,7 @@ public:
|
||||
int64_t body_condition_output_idx = -1;
|
||||
};
|
||||
|
||||
OPENVINO_OP("Loop", "opset5", op::util::SubGraphOp, 5);
|
||||
OPENVINO_OP("Loop", "opset5", op::util::SubGraphOp);
|
||||
|
||||
/// \brief Constructs a Loop operation.
|
||||
Loop() = default;
|
||||
|
@ -278,7 +278,7 @@ namespace v4 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API LSTMCell : public util::RNNCellBase {
|
||||
public:
|
||||
OPENVINO_OP("LSTMCell", "opset4", op::util::RNNCellBase, 4);
|
||||
OPENVINO_OP("LSTMCell", "opset4", op::util::RNNCellBase);
|
||||
|
||||
LSTMCell();
|
||||
///
|
||||
|
@ -127,7 +127,7 @@ namespace v5 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API LSTMSequence : public util::RNNCellBase {
|
||||
public:
|
||||
OPENVINO_OP("LSTMSequence", "opset5", util::RNNCellBase, 5);
|
||||
OPENVINO_OP("LSTMSequence", "opset5", util::RNNCellBase);
|
||||
LSTMSequence() = default;
|
||||
|
||||
using direction = RecurrentSequenceDirection;
|
||||
|
@ -15,7 +15,7 @@ namespace v1 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API MaxPool : public op::util::MaxPoolBase {
|
||||
public:
|
||||
OPENVINO_OP("MaxPool", "opset1", op::util::MaxPoolBase, 1);
|
||||
OPENVINO_OP("MaxPool", "opset1", op::util::MaxPoolBase);
|
||||
|
||||
/// \brief Constructs a batched max pooling operation.
|
||||
MaxPool() = default;
|
||||
|
@ -13,7 +13,7 @@ namespace v1 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API Maximum : public util::BinaryElementwiseArithmetic {
|
||||
public:
|
||||
OPENVINO_OP("Maximum", "opset1", op::util::BinaryElementwiseArithmetic, 1);
|
||||
OPENVINO_OP("Maximum", "opset1", op::util::BinaryElementwiseArithmetic);
|
||||
|
||||
/// \brief Constructs a maximum operation.
|
||||
Maximum() : util::BinaryElementwiseArithmetic(AutoBroadcastType::NUMPY) {}
|
||||
|
@ -13,7 +13,7 @@ namespace v1 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API Minimum : public util::BinaryElementwiseArithmetic {
|
||||
public:
|
||||
OPENVINO_OP("Minimum", "opset1", op::util::BinaryElementwiseArithmetic, 1);
|
||||
OPENVINO_OP("Minimum", "opset1", op::util::BinaryElementwiseArithmetic);
|
||||
|
||||
/// \brief Constructs a minimum operation.
|
||||
Minimum() : util::BinaryElementwiseArithmetic(AutoBroadcastType::NUMPY) {}
|
||||
|
@ -15,7 +15,7 @@ namespace v4 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API Mish : public util::UnaryElementwiseArithmetic {
|
||||
public:
|
||||
OPENVINO_OP("Mish", "opset4", util::UnaryElementwiseArithmetic, 4);
|
||||
OPENVINO_OP("Mish", "opset4", util::UnaryElementwiseArithmetic);
|
||||
|
||||
Mish() = default;
|
||||
/// \brief Constructs an Mish operation.
|
||||
|
@ -14,7 +14,7 @@ namespace v1 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API Mod : public util::BinaryElementwiseArithmetic {
|
||||
public:
|
||||
OPENVINO_OP("Mod", "opset1", op::util::BinaryElementwiseArithmetic, 1);
|
||||
OPENVINO_OP("Mod", "opset1", op::util::BinaryElementwiseArithmetic);
|
||||
|
||||
/// \brief Constructs a Mod node.
|
||||
Mod() : util::BinaryElementwiseArithmetic(AutoBroadcastType::NUMPY) {}
|
||||
|
@ -13,7 +13,7 @@ namespace v1 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API Multiply : public util::BinaryElementwiseArithmetic {
|
||||
public:
|
||||
OPENVINO_OP("Multiply", "opset1", util::BinaryElementwiseArithmetic, 1);
|
||||
OPENVINO_OP("Multiply", "opset1", util::BinaryElementwiseArithmetic);
|
||||
|
||||
/// \brief Constructs a multiplication operation.
|
||||
Multiply() : util::BinaryElementwiseArithmetic(AutoBroadcastType::NUMPY) {}
|
||||
|
@ -99,7 +99,7 @@ namespace v6 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API MVN : public Op {
|
||||
public:
|
||||
OPENVINO_OP("MVN", "opset6", op::Op, 6);
|
||||
OPENVINO_OP("MVN", "opset6", op::Op);
|
||||
|
||||
MVN() = default;
|
||||
/// \brief Constructs an MVN operation.
|
||||
|
@ -16,7 +16,7 @@ class OPENVINO_API NonMaxSuppression : public Op {
|
||||
public:
|
||||
enum class BoxEncodingType { CORNER, CENTER };
|
||||
|
||||
OPENVINO_OP("NonMaxSuppression", "opset1", op::Op, 1);
|
||||
OPENVINO_OP("NonMaxSuppression", "opset1", op::Op);
|
||||
|
||||
NonMaxSuppression() = default;
|
||||
|
||||
@ -86,7 +86,7 @@ class OPENVINO_API NonMaxSuppression : public Op {
|
||||
public:
|
||||
enum class BoxEncodingType { CORNER, CENTER };
|
||||
|
||||
OPENVINO_OP("NonMaxSuppression", "opset3", op::Op, 3);
|
||||
OPENVINO_OP("NonMaxSuppression", "opset3", op::Op);
|
||||
NonMaxSuppression() = default;
|
||||
|
||||
/// \brief Constructs a NonMaxSuppression operation.
|
||||
@ -166,7 +166,7 @@ namespace v4 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API NonMaxSuppression : public op::v3::NonMaxSuppression {
|
||||
public:
|
||||
OPENVINO_OP("NonMaxSuppression", "opset4", op::v3::NonMaxSuppression, 4);
|
||||
OPENVINO_OP("NonMaxSuppression", "opset4", op::v3::NonMaxSuppression);
|
||||
NonMaxSuppression() = default;
|
||||
|
||||
/// \brief Constructs a NonMaxSuppression operation.
|
||||
@ -217,7 +217,7 @@ namespace v5 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API NonMaxSuppression : public Op {
|
||||
public:
|
||||
OPENVINO_OP("NonMaxSuppression", "opset5", op::Op, 5);
|
||||
OPENVINO_OP("NonMaxSuppression", "opset5", op::Op);
|
||||
enum class BoxEncodingType { CORNER, CENTER };
|
||||
|
||||
NonMaxSuppression() = default;
|
||||
@ -365,7 +365,7 @@ namespace v9 {
|
||||
///
|
||||
class OPENVINO_API NonMaxSuppression : public Op {
|
||||
public:
|
||||
OPENVINO_OP("NonMaxSuppression", "opset9", op::Op, 9);
|
||||
OPENVINO_OP("NonMaxSuppression", "opset9", op::Op);
|
||||
enum class BoxEncodingType { CORNER, CENTER };
|
||||
|
||||
NonMaxSuppression() = default;
|
||||
|
@ -20,7 +20,7 @@ namespace v3 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API NonZero : public Op {
|
||||
public:
|
||||
OPENVINO_OP("NonZero", "opset3", op::Op, 3);
|
||||
OPENVINO_OP("NonZero", "opset3", op::Op);
|
||||
/// \brief Constructs a NonZero operation.
|
||||
NonZero() = default;
|
||||
/// \brief Constructs a NonZero operation.
|
||||
|
@ -13,7 +13,7 @@ namespace v1 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API NotEqual : public util::BinaryElementwiseComparison {
|
||||
public:
|
||||
OPENVINO_OP("NotEqual", "opset1", op::util::BinaryElementwiseComparison, 1);
|
||||
OPENVINO_OP("NotEqual", "opset1", op::util::BinaryElementwiseComparison);
|
||||
/// \brief Constructs a not-equal operation.
|
||||
NotEqual() : util::BinaryElementwiseComparison(AutoBroadcastType::NUMPY) {}
|
||||
/// \brief Constructs a not-equal operation.
|
||||
|
@ -14,7 +14,7 @@ namespace v1 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API OneHot : public Op {
|
||||
public:
|
||||
OPENVINO_OP("OneHot", "opset1", op::Op, 1);
|
||||
OPENVINO_OP("OneHot", "opset1", op::Op);
|
||||
|
||||
/// \brief Constructs a one-hot operation.
|
||||
OneHot() = default;
|
||||
|
@ -16,7 +16,6 @@
|
||||
|
||||
#define OPENVINO_OP(...) \
|
||||
_OPENVINO_RTTI_EXPAND(_OPENVINO_RTTI_DEFINITION_SELECTOR(__VA_ARGS__, \
|
||||
_OPENVINO_RTTI_WITH_TYPE_VERSIONS_PARENT, \
|
||||
_OPENVINO_RTTI_WITH_TYPE_VERSION_PARENT, \
|
||||
_OPENVINO_RTTI_OP_WITH_TYPE_VERSION, \
|
||||
_OPENVINO_RTTI_OP_WITH_TYPE)(__VA_ARGS__)) \
|
||||
@ -40,7 +39,7 @@ protected:
|
||||
|
||||
public:
|
||||
_OPENVINO_HIDDEN_METHOD static const ::ov::Node::type_info_t& get_type_info_static() {
|
||||
static ::ov::Node::type_info_t info{"Op", 0, "util"};
|
||||
static ::ov::Node::type_info_t info{"Op", "util"};
|
||||
info.hash();
|
||||
return info;
|
||||
}
|
||||
|
@ -15,7 +15,7 @@ namespace v1 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API Pad : public Op {
|
||||
public:
|
||||
OPENVINO_OP("Pad", "opset1", op::Op, 1);
|
||||
OPENVINO_OP("Pad", "opset1", op::Op);
|
||||
|
||||
/// \brief Constructs a generic padding operation.
|
||||
///
|
||||
|
@ -28,7 +28,7 @@ namespace v1 {
|
||||
// clang-format on
|
||||
class OPENVINO_API Power : public util::BinaryElementwiseArithmetic {
|
||||
public:
|
||||
OPENVINO_OP("Power", "opset1", op::util::BinaryElementwiseArithmetic, 1);
|
||||
OPENVINO_OP("Power", "opset1", op::util::BinaryElementwiseArithmetic);
|
||||
|
||||
Power() : util::BinaryElementwiseArithmetic(AutoBroadcastType::NUMPY) {}
|
||||
|
||||
|
@ -78,7 +78,7 @@ namespace v4 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API Proposal : public op::v0::Proposal {
|
||||
public:
|
||||
OPENVINO_OP("Proposal", "opset4", op::Op, 4);
|
||||
OPENVINO_OP("Proposal", "opset4", op::Op);
|
||||
Proposal() = default;
|
||||
/// \brief Constructs a Proposal operation
|
||||
///
|
||||
|
@ -13,7 +13,7 @@ namespace v4 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API Range : public Op {
|
||||
public:
|
||||
OPENVINO_OP("Range", "opset4", op::Op, 4);
|
||||
OPENVINO_OP("Range", "opset4", op::Op);
|
||||
/// \brief Constructs an unitialized range operation.
|
||||
Range() = default;
|
||||
|
||||
|
@ -15,7 +15,7 @@ namespace v3 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API ReadValue : public util::ReadValueBase {
|
||||
public:
|
||||
OPENVINO_OP("ReadValue", "opset3", util::ReadValueBase, 3);
|
||||
OPENVINO_OP("ReadValue", "opset3", util::ReadValueBase);
|
||||
ReadValue() = default;
|
||||
|
||||
/// \brief Constructs a ReadValue operation.
|
||||
@ -45,7 +45,7 @@ namespace v6 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API ReadValue : public util::ReadValueBase {
|
||||
public:
|
||||
OPENVINO_OP("ReadValue", "opset6", util::ReadValueBase, 6);
|
||||
OPENVINO_OP("ReadValue", "opset6", util::ReadValueBase);
|
||||
ReadValue() = default;
|
||||
|
||||
/// \brief Constructs a ReadValue operation.
|
||||
|
@ -16,7 +16,7 @@ namespace v4 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API ReduceL1 : public util::ArithmeticReductionKeepDims {
|
||||
public:
|
||||
OPENVINO_OP("ReduceL1", "opset4", util::ArithmeticReductionKeepDims, 4);
|
||||
OPENVINO_OP("ReduceL1", "opset4", util::ArithmeticReductionKeepDims);
|
||||
/// \brief Constructs a reducet L1-norm operation.
|
||||
ReduceL1() = default;
|
||||
/// \brief Constructs a reduce L1-norm operation.
|
||||
|
@ -15,7 +15,7 @@ namespace v4 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API ReduceL2 : public util::ArithmeticReductionKeepDims {
|
||||
public:
|
||||
OPENVINO_OP("ReduceL2", "opset4", util::ArithmeticReductionKeepDims, 4);
|
||||
OPENVINO_OP("ReduceL2", "opset4", util::ArithmeticReductionKeepDims);
|
||||
/// \brief Constructs a reducet L2-norm operation.
|
||||
ReduceL2() = default;
|
||||
/// \brief Constructs a reduce L2-norm operation.
|
||||
|
@ -16,7 +16,7 @@ namespace v1 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API ReduceLogicalAnd : public util::LogicalReductionKeepDims {
|
||||
public:
|
||||
OPENVINO_OP("ReduceLogicalAnd", "opset1", util::LogicalReductionKeepDims, 1);
|
||||
OPENVINO_OP("ReduceLogicalAnd", "opset1", util::LogicalReductionKeepDims);
|
||||
ReduceLogicalAnd() = default;
|
||||
/// \brief Constructs a ReduceLogicalAnd node.
|
||||
///
|
||||
|
@ -16,7 +16,7 @@ namespace v1 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API ReduceLogicalOr : public util::LogicalReductionKeepDims {
|
||||
public:
|
||||
OPENVINO_OP("ReduceLogicalOr", "opset1", util::LogicalReductionKeepDims, 1);
|
||||
OPENVINO_OP("ReduceLogicalOr", "opset1", util::LogicalReductionKeepDims);
|
||||
ReduceLogicalOr() = default;
|
||||
/// \brief Constructs a ReduceLogicalOr node.
|
||||
///
|
||||
|
@ -14,7 +14,7 @@ namespace v1 {
|
||||
/// \ingroup ov_ops_cpp_api
|
||||
class OPENVINO_API ReduceMax : public util::ArithmeticReductionKeepDims {
|
||||
public:
|
||||
OPENVINO_OP("ReduceMax", "opset1", util::ArithmeticReductionKeepDims, 1);
|
||||
OPENVINO_OP("ReduceMax", "opset1", util::ArithmeticReductionKeepDims);
|
||||
/// \brief Constructs a summation operation.
|
||||
ReduceMax() = default;
|
||||
/// \brief Constructs a summation operation.
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user