diff options
Diffstat (limited to 'src/trainer_interface.cc')
-rw-r--r-- | src/trainer_interface.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/trainer_interface.cc b/src/trainer_interface.cc index fc8dd28..36313b7 100644 --- a/src/trainer_interface.cc +++ b/src/trainer_interface.cc @@ -353,7 +353,7 @@ util::Status TrainerInterface::SaveModel(absl::string_view filename) const { LOG(INFO) << "Saving model: " << filename; ModelProto model_proto; RETURN_IF_ERROR(Serialize(&model_proto)); - auto output = filesystem::NewWritableFile(filename.data()); + auto output = filesystem::NewWritableFile(filename.data(), true); RETURN_IF_ERROR(output->status()); output->Write(model_proto.SerializeAsString()); return util::OkStatus(); |