Fix for benchmark_app: set model stream flags (#9609)
This commit is contained in:
parent
ac45196ce2
commit
5b40f381cb
@ -532,7 +532,7 @@ int main(int argc, char* argv[]) {
|
|||||||
next_step();
|
next_step();
|
||||||
auto startTime = Time::now();
|
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()) {
|
if (!modelStream.is_open()) {
|
||||||
throw std::runtime_error("Cannot open model file " + FLAGS_m);
|
throw std::runtime_error("Cannot open model file " + FLAGS_m);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user