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

Method completed

monai/handlers/smartcache_handler.py:73–80  ·  view source on GitHub ↗

Callback for train or validation/evaluation completed Event. Stop the replacement thread of SmartCacheDataset. Args: engine: Ignite Engine, it can be a trainer, validator or evaluator.

(self, engine: Engine)

Source from the content-addressed store, hash-verified

71 self.smartcacher.update_cache()
72
73 def completed(self, engine: Engine) -> None:
74 """Callback for train or validation/evaluation completed Event.
75 Stop the replacement thread of SmartCacheDataset.
76
77 Args:
78 engine: Ignite Engine, it can be a trainer, validator or evaluator.
79 """
80 self.smartcacher.shutdown()

Callers

nothing calls this directly

Calls 1

shutdownMethod · 0.80

Tested by

no test coverage detected