MCPcopy Create free account
hub / github.com/modelscope/modelscope / merge

Method merge

modelscope/metrics/base.py:43–56  ·  view source on GitHub ↗

When using data parallel, the data required for different metric calculations are stored in their respective Metric classes, and we need to merge these data to uniformly calculate metric. Args: other: Another Metric instance. Returns: None

(self, other: 'Metric')

Source from the content-addressed store, hash-verified

41
42 @abstractmethod
43 def merge(self, other: 'Metric'):
44 """ When using data parallel, the data required for different metric calculations
45
46 are stored in their respective Metric classes,
47
48 and we need to merge these data to uniformly calculate metric.
49
50 Args:
51 other: Another Metric instance.
52
53 Returns: None
54
55 """
56 pass

Callers 7

merge_metricsFunction · 0.45
autocontrast_funcFunction · 0.45
equalize_funcFunction · 0.45
adjust_hueFunction · 0.45
forwardMethod · 0.45
_poly2maskMethod · 0.45
forwardMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected