[TF FE] Refer Frontend Extension page in case unsupported operations (#17387)

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
This commit is contained in:
Roman Kazantsev
2023-05-06 08:20:13 +03:00
committed by GitHub
parent b6098fed90
commit fb38fcef2b
2 changed files with 7 additions and 0 deletions

View File

@@ -256,6 +256,9 @@ std::shared_ptr<ov::Model> FrontEnd::convert(const ov::frontend::InputModel::Ptr
exception_message << unsupported_operation;
++counter;
}
exception_message
<< "\nTo facilitate the conversion of unsupported operations, refer to Frontend Extension documentation: "
"https://docs.openvino.ai/latest/openvino_docs_Extensibility_UG_Frontend_Extensions.html \n";
}
bool is_conversion_successful = ((unsupported_operations.size() == 0) && (failures.size() == 0));

View File

@@ -194,7 +194,11 @@ TEST(FrontEndConvertModelTest, conversion_with_unknown_exception) {
string ref_message = "Unknown exception type\n"
"[TensorFlow Frontend] Internal error, no translator found for operation(s): Enter, Exit, "
"LoopCond, Merge, NextIteration, Switch";
string doc_message =
"To facilitate the conversion of unsupported operations, refer to Frontend Extension documentation: "
"https://docs.openvino.ai/latest/openvino_docs_Extensibility_UG_Frontend_Extensions.html";
ASSERT_TRUE(error_message.find(ref_message) != string::npos);
ASSERT_TRUE(error_message.find(doc_message) != string::npos);
ASSERT_EQ(model, nullptr);
} catch (...) {
FAIL() << "Conversion of TensorFlow 1 While failed by wrong reason.";