MCPcopy Index your code
hub / github.com/tensorpack/tensorpack / feed

Method feed

tensorpack/utils/stats.py:16–21  ·  view source on GitHub ↗

Args: v(float or np.ndarray): has to be the same shape between calls.

(self, v)

Source from the content-addressed store, hash-verified

14 self.reset()
15
16 def feed(self, v):
17 """
18 Args:
19 v(float or np.ndarray): has to be the same shape between calls.
20 """
21 self._values.append(v)
22
23 def reset(self):
24 self._values = []

Callers 10

total_timerFunction · 0.45
_on_fetchesMethod · 0.45
_on_fetchesMethod · 0.45
eval_classificationFunction · 0.45
fetchFunction · 0.45
eval_classificationFunction · 0.45
fetchFunction · 0.45
stepMethod · 0.45
eval_classificationFunction · 0.45
eval_classificationFunction · 0.45

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected