Skip to content

Commit

Permalink
Internal change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 294999858
Change-Id: I83d5b1a410a8b3745126cfa4bf6ebfb6b4938d46
  • Loading branch information
TF-Slim Team authored and copybara-github committed Feb 13, 2020
1 parent 2abdae7 commit 4e2bdbf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tf_slim/learning.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ def InitAssignFn(sess):
from tensorflow.python.framework import errors
from tensorflow.python.framework import ops
from tensorflow.python.lib.io import file_io
from tensorflow.python.ops import array_ops
from tensorflow.python.ops import clip_ops
from tensorflow.python.ops import control_flow_ops
from tensorflow.python.ops import lookup_ops
Expand Down Expand Up @@ -680,8 +681,8 @@ def train(train_op,
else:
local_init_op = control_flow_ops.group(
*[opt.local_step_init_op for opt in sync_optimizer])
ready_for_local_init_op = control_flow_ops.group(
*[opt.ready_for_local_init_op for opt in sync_optimizer])
ready_for_local_init_op = array_ops.concat(
[opt.ready_for_local_init_op for opt in sync_optimizer], axis=0)
else:
ready_for_local_init_op = None

Expand Down

0 comments on commit 4e2bdbf

Please sign in to comment.