We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75160c7 commit 63baa30Copy full SHA for 63baa30
deepmd/train/trainer.py
@@ -408,8 +408,9 @@ def _init_session(self):
408
if self.run_opt.init_mode == 'init_from_scratch' :
409
log.info("initialize model from scratch")
410
run_sess(self.sess, init_op)
411
- fp = open(self.disp_file, "w")
412
- fp.close ()
+ if not self.is_compress:
+ fp = open(self.disp_file, "w")
413
+ fp.close ()
414
elif self.run_opt.init_mode == 'init_from_model' :
415
log.info("initialize from model %s" % self.run_opt.init_model)
416
0 commit comments