[ngraph] Fix compare functions for functional tests (#3161)

This commit is contained in:
Aleksandr Pertovsky
2020-11-17 11:32:52 +03:00
committed by GitHub
parent c4d39fabeb
commit 4e510c80c0
2 changed files with 2 additions and 2 deletions

View File

@@ -115,7 +115,7 @@ public:
testValues.expected.dequantization2,
testValues.expected.dequantizationAfter,
// Constant operations after transformations are on 1 input only
testValues.constInput == 0 ? 1 : -1,
testValues.constInput == -1 ? -1 : 1,
testValues.expected.constValues,
testValues.additionalLayer,
testValues.expected.operationType);

View File

@@ -40,7 +40,7 @@ bool compareTypeInfo(const ngraph::DiscreteTypeInfo& info1, const ngraph::Discre
const std::string info1Name = isTypeRelaxed(info1.name) && (info1.parent != nullptr) ? info1.parent->name : info1.name;
const std::string info2Name = isTypeRelaxed(info2.name) && (info2.parent != nullptr) ? info2.parent->name : info2.name;
return info1Name == info1Name;
return info1Name == info2Name;
}
bool compare_rt_keys(const std::shared_ptr<ngraph::Node>& node1, const std::shared_ptr<ngraph::Node>& node2) {