Export more enum names from nrgaph (#8828)

This commit is contained in:
Ilya Lavrenov 2021-11-26 13:40:27 +03:00 committed by GitHub
parent b3869cb127
commit 533bab2b78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 8 additions and 8 deletions

View File

@ -12,7 +12,7 @@ using namespace ngraph;
namespace ov {
template <>
EnumNames<ngraph::reduction::Type>& EnumNames<ngraph::reduction::Type>::get() {
NGRAPH_API EnumNames<ngraph::reduction::Type>& EnumNames<ngraph::reduction::Type>::get() {
static auto enum_names = ov::EnumNames<ngraph::reduction::Type>("reduction::Type",
{{"SUM", ngraph::reduction::Type::SUM},
{"PROD", ngraph::reduction::Type::PROD},

View File

@ -75,7 +75,7 @@ std::ostream& ov::operator<<(std::ostream& s, const op::v0::Interpolate::Interpo
namespace ov {
template <>
EnumNames<ngraph::op::v0::Interpolate::InterpolateMode>&
NGRAPH_API EnumNames<ngraph::op::v0::Interpolate::InterpolateMode>&
EnumNames<ngraph::op::v0::Interpolate::InterpolateMode>::get() {
static auto enum_names = EnumNames<ngraph::op::v0::Interpolate::InterpolateMode>(
"op::v0::Interpolate::InterpolateMode",

View File

@ -336,7 +336,7 @@ shared_ptr<Node> op::v0::LSTMCell::clone_with_new_inputs(const OutputVector& new
namespace ov {
template <>
EnumNames<ngraph::op::LSTMWeightsFormat>& EnumNames<ngraph::op::LSTMWeightsFormat>::get() {
NGRAPH_API EnumNames<ngraph::op::LSTMWeightsFormat>& EnumNames<ngraph::op::LSTMWeightsFormat>::get() {
static auto enum_names = EnumNames<ngraph::op::LSTMWeightsFormat>("op::LSTMWeightsFormat",
{{"fico", ngraph::op::LSTMWeightsFormat::FICO},
{"icof", ngraph::op::LSTMWeightsFormat::ICOF},

View File

@ -177,7 +177,7 @@ int64_t op::v1::NonMaxSuppression::max_boxes_output_from_input() const {
namespace ov {
template <>
EnumNames<ngraph::op::v1::NonMaxSuppression::BoxEncodingType>&
NGRAPH_API EnumNames<ngraph::op::v1::NonMaxSuppression::BoxEncodingType>&
EnumNames<ngraph::op::v1::NonMaxSuppression::BoxEncodingType>::get() {
static auto enum_names = EnumNames<ngraph::op::v1::NonMaxSuppression::BoxEncodingType>(
"op::v1::NonMaxSuppression::BoxEncodingType",
@ -365,7 +365,7 @@ int64_t op::v3::NonMaxSuppression::max_boxes_output_from_input() const {
namespace ov {
template <>
EnumNames<ngraph::op::v3::NonMaxSuppression::BoxEncodingType>&
NGRAPH_API EnumNames<ngraph::op::v3::NonMaxSuppression::BoxEncodingType>&
EnumNames<ngraph::op::v3::NonMaxSuppression::BoxEncodingType>::get() {
static auto enum_names = EnumNames<ngraph::op::v3::NonMaxSuppression::BoxEncodingType>(
"op::v3::NonMaxSuppression::BoxEncodingType",
@ -825,7 +825,7 @@ std::ostream& ov::operator<<(std::ostream& s, const op::v5::NonMaxSuppression::B
namespace ov {
template <>
EnumNames<ngraph::op::v5::NonMaxSuppression::BoxEncodingType>&
NGRAPH_API EnumNames<ngraph::op::v5::NonMaxSuppression::BoxEncodingType>&
EnumNames<ngraph::op::v5::NonMaxSuppression::BoxEncodingType>::get() {
static auto enum_names = EnumNames<ngraph::op::v5::NonMaxSuppression::BoxEncodingType>(
"op::v5::NonMaxSuppression::BoxEncodingType",

View File

@ -203,7 +203,7 @@ std::ostream& ov::operator<<(std::ostream& s, const op::v1::Reverse::Mode& type)
namespace ov {
template <>
EnumNames<ngraph::op::v1::Reverse::Mode>& EnumNames<ngraph::op::v1::Reverse::Mode>::get() {
NGRAPH_API EnumNames<ngraph::op::v1::Reverse::Mode>& EnumNames<ngraph::op::v1::Reverse::Mode>::get() {
static auto enum_names = EnumNames<ngraph::op::v1::Reverse::Mode>(
"op::v1::Reverse::Mode",
{{"index", ngraph::op::v1::Reverse::Mode::INDEX}, {"mask", ngraph::op::v1::Reverse::Mode::MASK}});

View File

@ -121,7 +121,7 @@ std::ostream& ov::operator<<(std::ostream& s, const op::v5::Round::RoundMode& ty
namespace ov {
template <>
EnumNames<ngraph::op::v5::Round::RoundMode>& EnumNames<ngraph::op::v5::Round::RoundMode>::get() {
NGRAPH_API EnumNames<ngraph::op::v5::Round::RoundMode>& EnumNames<ngraph::op::v5::Round::RoundMode>::get() {
static auto enum_names = EnumNames<ngraph::op::v5::Round::RoundMode>(
"op::v5::Round::RoundMode",
{{"half_to_even", ngraph::op::v5::Round::RoundMode::HALF_TO_EVEN},