serialize fix

This commit is contained in:
Francesco Gatti
2020-06-14 13:01:45 +02:00
parent 567dc0f75d
commit cbfc8ea4f2
2 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -595,7 +595,7 @@ ILayer* NetworkRT::convert_layer(ITensor *input, DeformConv2d *l) {
bool NetworkRT::serialize(const char *filename) {
std::ofstream p(filename);
std::ofstream p(filename, std::ios::binary);
if (!p) {
FatalError("could not open plan output file");
return false;