Fix for benchmark_app: set model stream flags (#9609)

This commit is contained in:
Mikhail Znamenskiy 2022-01-13 10:15:33 +03:00 committed by GitHub
parent ac45196ce2
commit 5b40f381cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -532,7 +532,7 @@ int main(int argc, char* argv[]) {
next_step();
auto startTime = Time::now();
std::ifstream modelStream(FLAGS_m);
std::ifstream modelStream(FLAGS_m, std::ios_base::binary | std::ios_base::in);
if (!modelStream.is_open()) {
throw std::runtime_error("Cannot open model file " + FLAGS_m);
}