autocast.metrics.base#
- class BaseMetric(reduce_all=True, dist_sync_on_step=False)[source]#
Bases:
Metric,Generic[TPred,TTrue],ABCShared template for spatial metrics that reduce over spatial axes.
Bases: Metric, Generic[TPred, TTrue], ABC
Shared template for spatial metrics that reduce over spatial axes.