fix
This commit is contained in:
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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user