Commit 4204096d authored by Ewa Tusień's avatar Ewa Tusień Committed by Sang Ik Lee

Upgraded version to v1 for Add, Mul, Sub, Div. (#4069)

Co-authored-by: 's avatarMichał Karzyński <postrational@users.noreply.github.com>
Co-authored-by: 's avatarSang Ik Lee <sang.ik.lee@intel.com>
parent bcc424ab
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
#include "add.hpp" #include "add.hpp"
#include "default_opset.hpp" #include "default_opset.hpp"
#include "ngraph/op/util/broadcasting.hpp" #include "ngraph/op/util/broadcasting.hpp"
#include "ngraph/opsets/opset0.hpp"
namespace ngraph namespace ngraph
{ {
...@@ -36,8 +35,8 @@ namespace ngraph ...@@ -36,8 +35,8 @@ namespace ngraph
NodeVector ng_inputs{ngraph::op::legacy_style_broadcast_for_binary_operation( NodeVector ng_inputs{ngraph::op::legacy_style_broadcast_for_binary_operation(
node.get_ng_inputs().at(0), node.get_ng_inputs().at(1), axis)}; node.get_ng_inputs().at(0), node.get_ng_inputs().at(1), axis)};
return { return {std::make_shared<default_opset::Add>(
std::make_shared<ngraph::opset0::Add>(ng_inputs.at(0), ng_inputs.at(1))}; ng_inputs.at(0), ng_inputs.at(1), ngraph::op::AutoBroadcastSpec::NONE)};
} }
} // namespace set_1 } // namespace set_1
......
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
#include "default_opset.hpp" #include "default_opset.hpp"
#include "ngraph/node.hpp" #include "ngraph/node.hpp"
#include "ngraph/op/util/broadcasting.hpp" #include "ngraph/op/util/broadcasting.hpp"
#include "ngraph/opsets/opset0.hpp"
namespace ngraph namespace ngraph
{ {
...@@ -41,8 +40,8 @@ namespace ngraph ...@@ -41,8 +40,8 @@ namespace ngraph
NodeVector ng_inputs{ngraph::op::legacy_style_broadcast_for_binary_operation( NodeVector ng_inputs{ngraph::op::legacy_style_broadcast_for_binary_operation(
node.get_ng_inputs().at(0), node.get_ng_inputs().at(1), axis)}; node.get_ng_inputs().at(0), node.get_ng_inputs().at(1), axis)};
return { return {std::make_shared<default_opset::Divide>(
std::make_shared<ngraph::opset0::Divide>(ng_inputs.at(0), ng_inputs.at(1))}; ng_inputs.at(0), ng_inputs.at(1), ngraph::op::AutoBroadcastSpec::NONE)};
} }
} // namespace set_1 } // namespace set_1
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
#include "ngraph/op/broadcast.hpp" #include "ngraph/op/broadcast.hpp"
#include "ngraph/op/multiply.hpp" #include "ngraph/op/multiply.hpp"
#include "ngraph/op/util/broadcasting.hpp" #include "ngraph/op/util/broadcasting.hpp"
#include "ngraph/opsets/opset0.hpp"
namespace ngraph namespace ngraph
{ {
...@@ -43,8 +42,8 @@ namespace ngraph ...@@ -43,8 +42,8 @@ namespace ngraph
NodeVector ng_inputs{ngraph::op::legacy_style_broadcast_for_binary_operation( NodeVector ng_inputs{ngraph::op::legacy_style_broadcast_for_binary_operation(
node.get_ng_inputs().at(0), node.get_ng_inputs().at(1), axis)}; node.get_ng_inputs().at(0), node.get_ng_inputs().at(1), axis)};
return {std::make_shared<ngraph::opset0::Multiply>(ng_inputs.at(0), return {std::make_shared<default_opset::Multiply>(
ng_inputs.at(1))}; ng_inputs.at(0), ng_inputs.at(1), ngraph::op::AutoBroadcastSpec::NONE)};
} }
} // namespace set_1 } // namespace set_1
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#include "default_opset.hpp" #include "default_opset.hpp"
#include "ngraph/node.hpp" #include "ngraph/node.hpp"
#include "ngraph/op/util/broadcasting.hpp" #include "ngraph/op/util/broadcasting.hpp"
#include "ngraph/opsets/opset0.hpp"
namespace ngraph namespace ngraph
{ {
...@@ -39,8 +38,8 @@ namespace ngraph ...@@ -39,8 +38,8 @@ namespace ngraph
NodeVector ng_inputs{ngraph::op::legacy_style_broadcast_for_binary_operation( NodeVector ng_inputs{ngraph::op::legacy_style_broadcast_for_binary_operation(
node.get_ng_inputs().at(0), node.get_ng_inputs().at(1), axis)}; node.get_ng_inputs().at(0), node.get_ng_inputs().at(1), axis)};
return {std::make_shared<ngraph::opset0::Subtract>(ng_inputs.at(0), return {std::make_shared<default_opset::Subtract>(
ng_inputs.at(1))}; ng_inputs.at(0), ng_inputs.at(1), ngraph::op::AutoBroadcastSpec::NONE)};
} }
} // namespace set_1 } // namespace set_1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment