Import/Export tests enabled for the CPU plugin (#7735)

This commit is contained in:
Vladislav Volkov 2021-09-30 09:11:01 +03:00 committed by GitHub
parent 1f5355cd07
commit 4bf8d15793
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 3 deletions

View File

@ -69,8 +69,6 @@ std::vector<std::string> disabledTestPatterns() {
// TODO: 57562 No dynamic output shape support // TODO: 57562 No dynamic output shape support
R"(.*NonZeroLayerTest.*)", R"(.*NonZeroLayerTest.*)",
// need to implement Export / Import
R"(.*IEClassImportExportTestP.*)",
// CVS-58963: Not implemented yet // CVS-58963: Not implemented yet
R"(.*Behavior.*InferRequest.*OutOfFirstOutIsInputForSecondNetwork.*)", R"(.*Behavior.*InferRequest.*OutOfFirstOutIsInputForSecondNetwork.*)",
// Not expected behavior // Not expected behavior

View File

@ -557,7 +557,7 @@ TEST_P(IEClassImportExportTestP, smoke_ExportUsingFileNameImportFromStreamNoThro
} }
{ {
{ {
std::ifstream strm(fileName); std::ifstream strm(fileName, std::ifstream::binary | std::ifstream::in);
ASSERT_NO_THROW(executableNetwork = ie.ImportNetwork(strm, deviceName)); ASSERT_NO_THROW(executableNetwork = ie.ImportNetwork(strm, deviceName));
} }
ASSERT_EQ(0, remove(fileName.c_str())); ASSERT_EQ(0, remove(fileName.c_str()));