Home
last modified time | relevance | path

Searched refs:keep_checkpoint_per_n_minutes (Results 1 – 3 of 3) sorted by relevance

/third_party/mindspore/mindspore/train/callback/
D_checkpoint.py141 keep_checkpoint_per_n_minutes=0, argument
155 if keep_checkpoint_per_n_minutes is not None:
156keep_checkpoint_per_n_minutes = Validator.check_non_negative_int(keep_checkpoint_per_n_minutes)
163 not keep_checkpoint_max and not keep_checkpoint_per_n_minutes:
173 self._keep_checkpoint_per_n_minutes = keep_checkpoint_per_n_minutes
203 def keep_checkpoint_per_n_minutes(self): member in CheckpointConfig
242 'keep_checkpoint_per_n_minutes': self.keep_checkpoint_per_n_minutes,
414 …elif self._config.keep_checkpoint_per_n_minutes and self._config.keep_checkpoint_per_n_minutes > 0:
417 < self._config.keep_checkpoint_per_n_minutes * 60:
418 … self._manager.keep_one_ckpoint_per_minutes(self._config.keep_checkpoint_per_n_minutes,
/third_party/mindspore/tests/ut/python/train/
Dtest_run_config.py41 assert config.keep_checkpoint_per_n_minutes is None
50 CheckpointConfig(keep_checkpoint_per_n_minutes='abc')
59 CheckpointConfig(keep_checkpoint_per_n_minutes=-1)
/third_party/mindspore/tests/ut/python/utils/
Dtest_callback.py97 keep_checkpoint_per_n_minutes=0)
199 keep_checkpoint_per_n_minutes=0)
228 keep_checkpoint_per_n_minutes=1)
257 keep_checkpoint_per_n_minutes=0,
373 keep_checkpoint_per_n_minutes=0)