File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -380,11 +380,7 @@ void InfEngineNgraphNet::setNodePtr(std::shared_ptr<ngraph::Node>* ptr) {
380
380
381
381
void InfEngineNgraphNet::release () {
382
382
for (auto & node : components.back ()) {
383
- #if INF_ENGINE_VER_MAJOR_GT(INF_ENGINE_RELEASE_2020_4)
384
- if (!(ngraph::op::is_parameter (node) || ngraph::op::is_output (ngraph) || ngraph::op::is_constant (ngraph)) ) {
385
- #else
386
383
if (!(node->is_parameter () || node->is_output () || node->is_constant ()) ) {
387
- #endif
388
384
auto it = all_nodes.find (node->get_friendly_name ());
389
385
if (it != all_nodes.end ()) {
390
386
unconnectedNodes.erase (*(it->second ));
@@ -451,19 +447,11 @@ void InfEngineNgraphNet::createNet(Target targetId) {
451
447
ngraph::ResultVector outputs;
452
448
ngraph::ParameterVector inps;
453
449
for (auto & node : components.back ()) {
454
- #if INF_ENGINE_VER_MAJOR_GT(INF_ENGINE_RELEASE_2020_4)
455
- if (ngraph::op::is_parameter (node)) {
456
- #else
457
450
if (node->is_parameter ()) {
458
- #endif
459
451
auto parameter = std::dynamic_pointer_cast<ngraph::op::Parameter>(node);
460
452
inps.push_back (parameter);
461
453
}
462
- #if INF_ENGINE_VER_MAJOR_GT(INF_ENGINE_RELEASE_2020_4)
463
- else if (ngraph::op::is_output (node)) {
464
- #else
465
454
else if (node->is_output ()) {
466
- #endif
467
455
auto result = std::dynamic_pointer_cast<ngraph::op::Result>(node);
468
456
outputs.push_back (result);
469
457
}
You can’t perform that action at this time.
0 commit comments