MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / epoch_completed

Method epoch_completed

monai/handlers/smartcache_handler.py:64–71  ·  view source on GitHub ↗

Callback for train or validation/evaluation epoch completed Event. Update cache content with replacement data. Args: engine: Ignite Engine, it can be a trainer, validator or evaluator.

(self, engine: Engine)

Source from the content-addressed store, hash-verified

62 self.smartcacher.start()
63
64 def epoch_completed(self, engine: Engine) -> None:
65 """Callback for train or validation/evaluation epoch completed Event.
66 Update cache content with replacement data.
67
68 Args:
69 engine: Ignite Engine, it can be a trainer, validator or evaluator.
70 """
71 self.smartcacher.update_cache()
72
73 def completed(self, engine: Engine) -> None:
74 """Callback for train or validation/evaluation completed Event.

Callers

nothing calls this directly

Calls 1

update_cacheMethod · 0.80

Tested by

no test coverage detected