Fixed master build (#8857)

* [Tests] Added missed ostream operators

* Disabled ROIAlign tests with bf16

Co-authored-by: Alexandra Sidorova <alexandra.sidorova@intel.com>
This commit is contained in:
Gorokhov Dmitriy 2021-11-26 23:42:55 +03:00 committed by GitHub
parent 42f5034892
commit 1cc9ca481f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 39 additions and 0 deletions

View File

@ -155,6 +155,8 @@ std::vector<std::string> disabledTestPatterns() {
R"(.*GroupConvolutionLayerCPUTest.*IS=\{.+\}.*_Fused=.*Add\(Parameters\).*)",
// Issue: 71968
R"(.*LSTMSequenceCommonZeroClip.*PURE.*CONST.*hidden_size=10.*sigmoid.sigmoid.sigmoid.*reverse.*FP32_targetDevice=CPU.*)",
// Issue: 72151
R"(.*smoke_ROIAlignLayoutTest.*bf16.*)",
};
#define FIX_62820 0

View File

@ -15,6 +15,7 @@ namespace subgraph {
using namespace ngraph;
using namespace InferenceEngine;
using ngraph::helpers::operator<<;
std::string MatrixNmsLayerTest::getTestCaseName(const testing::TestParamInfo<NmsParams>& obj) {
std::vector<InputShape> shapes;

View File

@ -15,6 +15,7 @@ namespace subgraph {
using namespace ngraph;
using namespace InferenceEngine;
using ngraph::helpers::operator<<;
std::string MulticlassNmsLayerTest::getTestCaseName(const testing::TestParamInfo<MulticlassNmsParams>& obj) {
std::vector<InputShape> shapes;

View File

@ -320,6 +320,10 @@ std::ostream& operator<<(std::ostream & os, SequenceTestsMode type);
std::ostream& operator<<(std::ostream & os, MemoryTransformation type);
std::ostream& operator<<(std::ostream & os, op::util::NmsBase::SortResultType type);
std::ostream& operator<<(std::ostream & os, op::v8::MatrixNms::DecayFunction type);
void resize_function(std::shared_ptr<ov::Function> function, const std::vector<ov::Shape>& targetInputStaticShapes);
} // namespace helpers

View File

@ -903,6 +903,37 @@ std::ostream& operator<<(std::ostream & os, MemoryTransformation type) {
return os;
}
std::ostream& operator<<(std::ostream & os, ngraph::op::util::NmsBase::SortResultType type) {
switch (type) {
case op::util::NmsBase::SortResultType::CLASSID:
os << "CLASSID";
break;
case op::util::NmsBase::SortResultType::SCORE:
os << "SCORE";
break;
case op::util::NmsBase::SortResultType::NONE:
os << "NONE";
break;
default:
throw std::runtime_error("NOT_SUPPORTED_TYPE");
}
return os;
}
std::ostream& operator<<(std::ostream & os, op::v8::MatrixNms::DecayFunction type) {
switch (type) {
case op::v8::MatrixNms::DecayFunction::GAUSSIAN:
os << "GAUSSIAN";
break;
case op::v8::MatrixNms::DecayFunction::LINEAR:
os << "LINEAR";
break;
default:
throw std::runtime_error("NOT_SUPPORTED_TYPE");
}
return os;
}
void resize_function(std::shared_ptr<ov::Function> function,
const std::vector<ov::Shape>& targetInputStaticShapes) {
auto inputs = function->inputs();