Skip to content

Commit

Permalink
模型优先保存checkpoint_save路径
Browse files Browse the repository at this point in the history
  • Loading branch information
wangxingda committed Nov 19, 2021
1 parent b670b1e commit 2477156
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tensornet/callbacks/callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def on_train_end(self, logs=None):
self.model.show_decay(self.delta_days)
if not self.need_save_model:
return
self.model.save_weights(self.checkpoint_dir, dt=self.dt, mode=self.save_mode)
self.model.save_weights(self.checkpoint_save, dt=self.dt, mode=self.save_mode)

def on_predict_begin(self, logs=None):
self.load_model()
Expand Down

0 comments on commit 2477156

Please sign in to comment.