[GNA] Fixed import/export test (#13233)

This commit is contained in:
Mikhail Ryzhov
2022-09-27 21:53:40 +02:00
committed by GitHub
parent 795d17de81
commit b432da5a1e

View File

@@ -53,9 +53,9 @@ class ImportExportGNAModelUnchanged : public ImportReshapePermuteConv {
private:
void exportImportNetwork() override {
{
std::ofstream out(fileName);
out.write(applicationHeader.c_str(), applicationHeader.size());
executableNetwork.Export(out);
std::fstream outStream(fileName, std::ios_base::out | std::ios_base::binary);
outStream.write(applicationHeader.c_str(), applicationHeader.size());
executableNetwork.Export(outStream);
}
{
std::string appHeader(applicationHeader.size(), ' ');