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

Method summary

monai/fl/utils/exchange_object.py:94–101  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

92 self._summary[key] = type(value)
93
94 def summary(self):
95 self._summary.update(self)
96 for k, v in zip(
97 ["weights", "optim", "metrics", "weight_type", "statistics"],
98 [self.weights, self.optim, self.metrics, self.weight_type, self.statistics],
99 ):
100 self._add_to_summary(k, v)
101 return self._summary
102
103 def __repr__(self):
104 return str(self.summary())

Callers 4

__repr__Method · 0.95
__str__Method · 0.95
test_initMethod · 0.95
__call__Method · 0.80

Calls 2

_add_to_summaryMethod · 0.95
updateMethod · 0.45

Tested by 1

test_initMethod · 0.76