Skip to content

Commit

Permalink
Update learning.py (#14910)
Browse files Browse the repository at this point in the history
use sys.maxsize because sys.maxint doesn't exist in Python 3
  • Loading branch information
macmonac authored and drpngx committed Dec 28, 2017
1 parent edbcf17 commit 09ec6b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tensorflow/contrib/slim/python/slim/learning.py
Expand Up @@ -753,9 +753,10 @@ def train(train_op,
if logdir:
sv.start_standard_services(sess)
elif startup_delay_steps > 0:
# (use sys.maxsize because sys.maxint doesn't exist in Python 3)
_wait_for_step(sess, global_step,
min(startup_delay_steps, number_of_steps or
sys.maxint))
sys.maxsize))
threads = sv.start_queue_runners(sess)
logging.info('Starting Queues.')
if is_chief and sync_optimizer is not None:
Expand Down

0 comments on commit 09ec6b2

Please sign in to comment.