MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / start

Method start

python/paddle/base/trainer_factory.py:234–243  ·  view source on GitHub ↗

start monitor, it will start a monitor thread.

(self)

Source from the content-addressed store, hash-verified

232 self.running_lock.release()
233
234 def start(self):
235 """
236 start monitor,
237 it will start a monitor thread.
238 """
239 self.running_lock.acquire()
240 self.running = True
241 self.running_lock.release()
242 self.fetch_thread.setDaemon(True)
243 self.fetch_thread.start()
244
245 def stop(self):
246 self.running_lock.acquire()

Callers 2

_run_from_datasetMethod · 0.95
test_fetch_handlerMethod · 0.95

Calls 2

acquireMethod · 0.80
releaseMethod · 0.45

Tested by 1

test_fetch_handlerMethod · 0.76