MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / _wait_for_step

Function _wait_for_step

tensorflow/contrib/slim/python/slim/learning.py:445–456  ·  view source on GitHub ↗

Wait till the global step has reached at least 'step'. Args: sess: A session. global_step: A Tensor. step: Int. The global step to reach.

(sess, global_step, step)

Source from the content-addressed store, hash-verified

443
444
445def _wait_for_step(sess, global_step, step):
446 """Wait till the global step has reached at least 'step'.
447
448 Args:
449 sess: A session.
450 global_step: A Tensor.
451 step: Int. The global step to reach.
452 """
453 while True:
454 if training_util.global_step(sess, global_step) >= step:
455 break
456 time.sleep(1.0)
457
458
459def train_step(sess, train_op, global_step, train_step_kwargs):

Callers 1

trainFunction · 0.85

Calls 2

global_stepMethod · 0.45
sleepMethod · 0.45

Tested by

no test coverage detected