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

Method add

tensorpack/callbacks/group.py:23–25  ·  view source on GitHub ↗
(self, name, time)

Source from the content-addressed store, hash-verified

21 self.tot = 0
22
23 def add(self, name, time):
24 self.tot += time
25 self.times.append((name, time))
26
27 @contextmanager
28 def timed_callback(self, name):

Callers 1

timed_callbackMethod · 0.95

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected