Skip to content

[LPT] integrated fixes for release 2021.3#4460

Merged
azhogov merged 8 commits intoopenvinotoolkit:masterfrom
eshoguli:lpt/integration/2021/3
Feb 25, 2021
Merged

[LPT] integrated fixes for release 2021.3#4460
azhogov merged 8 commits intoopenvinotoolkit:masterfrom
eshoguli:lpt/integration/2021/3

Conversation

@eshoguli
Copy link
Copy Markdown

@eshoguli eshoguli commented Feb 23, 2021

Issues:

  • #48624, #49026, #47117
  • #43587, #48203, #48747, #43828, #49570

validation:

  • accuracy: developer-services/job/accuracy/1308/

validation:

  • accuracy: developer-services/job/accuracy/1305/
  • performance: developer-services/job/performance/678/

validation:

  • accuracy: developer-services/job/accuracy/1304/
  • performance: developer-services/job/performance/676/

@eshoguli eshoguli force-pushed the lpt/integration/2021/3 branch from b26d5ef to 62d73e1 Compare February 23, 2021 21:43
@eshoguli eshoguli force-pushed the lpt/integration/2021/3 branch from 63e154a to 4b86a79 Compare February 23, 2021 21:54
@eshoguli eshoguli marked this pull request as ready for review February 24, 2021 07:28
@eshoguli eshoguli requested review from a team February 24, 2021 07:28
@eshoguli eshoguli requested review from a team as code owners February 24, 2021 07:28
@eshoguli eshoguli requested review from a team February 24, 2021 07:28
@eshoguli eshoguli added the category: LP transformations OpenVINO Low Precision transformations label Feb 24, 2021
}

int NetworkHelper::getConstantInputIndex(std::shared_ptr<Node> node) {
if (as_type_ptr<opset1::Constant>(node->get_input_node_shared_ptr(1)) != nullptr) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor: Maybe we should use ngraph::is_type for such checks?

return 1;
}

if (as_type_ptr<opset1::Constant>(node->get_input_node_shared_ptr(0)) != nullptr) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor: Same


auto const values = multiplyConstant->cast_vector<float>();
return std::any_of(values.begin(), values.end(), [](const float value) { return value == 0.f; });
return std::any_of(values.begin(), values.end(), [](const float value) { return (value == 0.f) || (std::abs(value) < 1.e-32); });
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor: Let's handle 0/0 like 0 value. Actually it's even not handled in master because of value == 0.f.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor: This code still have to be modified to be able to pass Multiply(0) -> Add(0) cases.

@kshpv
Copy link
Copy Markdown

kshpv commented Feb 25, 2021

When this PR will be merged in master?
@ilyachur @GlebKazantaev

@eshoguli eshoguli requested a review from a team February 25, 2021 10:04
@eshoguli eshoguli force-pushed the lpt/integration/2021/3 branch from 2b4dcd3 to 2501c97 Compare February 25, 2021 10:07
@eshoguli
Copy link
Copy Markdown
Author

@vzinovie, please review new commit: 2501c97

@azhogov azhogov merged commit cec2f2f into openvinotoolkit:master Feb 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category: LP transformations OpenVINO Low Precision transformations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants