MCPcopy
hub / github.com/yerfor/GeneFacePlusPlus / num

Method num

modules/eg3ds/torch_utils/training_stats.py:182–188  ·  view source on GitHub ↗

r"""Returns the number of scalars that were accumulated for the given statistic between the last two calls to `update()`, or zero if no scalars were collected.

(self, name)

Source from the content-addressed store, hash-verified

180 return self._moments[name]
181
182 def num(self, name):
183 r"""Returns the number of scalars that were accumulated for the given
184 statistic between the last two calls to `update()`, or zero if
185 no scalars were collected.
186 """
187 delta = self._get_delta(name)
188 return int(delta[0])
189
190 def mean(self, name):
191 r"""Returns the mean of the scalars that were accumulated for the

Callers 1

as_dictMethod · 0.95

Calls 1

_get_deltaMethod · 0.95

Tested by

no test coverage detected