- MeanDice.completed(engine: Engine, name: str) None #
Helper method to compute metric’s value and put into the engine. It is automatically attached to the engine with
attach(). If metrics’ value is torch tensor, it is explicitly sent to CPU device.
engine: the engine to which the metric must be attached name: the name of the metric used as key in dict engine.state.metrics
Changed in version 0.4.3: Added dict in metrics results.
Changed in version 0.4.5: metric’s value is put on CPU if torch tensor.