This commit is contained in:
Simone Margaritelli 2019-10-01 20:18:09 +02:00
parent efc1997f02
commit 8c840f9c82

@ -77,7 +77,7 @@ class Stats(object):
}
})
temp = ".%s.tmp" % self.path
temp = "%s.tmp" % self.path
with open(temp, 'wt') as fp:
fp.write(data)
@ -109,7 +109,7 @@ class AsyncTrainer(object):
def _save_ai(self):
core.log("[ai] saving model to %s ..." % self._nn_path)
temp = ".%s.tmp" % self._nn_path
temp = "%s.tmp" % self._nn_path
self._model.save(temp)
os.replace(temp, self._nn_path)