MCPcopy Create free account
hub / github.com/tensorpack/tensorpack / func

Method func

examples/A3C-Gym/common.py:59–62  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

57 self.q = queue
58
59 def func(self, *args, **kwargs):
60 if self.stopped():
61 raise RuntimeError("stopped!")
62 return self._func(*args, **kwargs)
63
64 def run(self):
65 with self.default_sess():

Callers 5

_triggerMethod · 0.45
runMethod · 0.45
__iter__Method · 0.45
runMethod · 0.45
_processMethod · 0.45

Calls 1

stoppedMethod · 0.80

Tested by

no test coverage detected