fix
This commit is contained in:
parent
13ec643933
commit
f9566976ec
@ -444,9 +444,8 @@ int main(int argc, char** argv)
|
||||
APIToModel(1, &modelStream, mode);
|
||||
assert(modelStream != nullptr);
|
||||
|
||||
std::ofstream p("mobilenetv3_" + mode + ".engine");
|
||||
if (!p)
|
||||
{
|
||||
std::ofstream p("mobilenetv3_" + mode + ".engine", std::ios::binary);
|
||||
if (!p) {
|
||||
std::cerr << "could not open plan output file" << std::endl;
|
||||
return -1;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user