Skip to content

Commit f956697

Browse files
committed
fix
1 parent 13ec643 commit f956697

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

mobilenetv3/mobilenet_v3.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -444,9 +444,8 @@ int main(int argc, char** argv)
444444
APIToModel(1, &modelStream, mode);
445445
assert(modelStream != nullptr);
446446

447-
std::ofstream p("mobilenetv3_" + mode + ".engine");
448-
if (!p)
449-
{
447+
std::ofstream p("mobilenetv3_" + mode + ".engine", std::ios::binary);
448+
if (!p) {
450449
std::cerr << "could not open plan output file" << std::endl;
451450
return -1;
452451
}

0 commit comments

Comments
 (0)