Work around the outside compilation / resource variable issue.

PiperOrigin-RevId: 335441457
Change-Id: Id9055f26d786f8d9936edc0312f73e86a420e56a
This commit is contained in:
Mehmet Deveci 2020-10-05 10:08:48 -07:00 committed by TensorFlower Gardener
parent f9c1d327a3
commit ab1478d380

View File

@ -1494,7 +1494,7 @@ class TensorTracer(object):
flush_op = tpu.outside_compilation( flush_op = tpu.outside_compilation(
_flush_fun, cache_val, self._replica_id, _flush_fun, cache_val, self._replica_id,
training_util.get_or_create_global_step()) array_ops.identity(training_util.get_or_create_global_step()))
else: else:
flush_op = _flush_fun(cache_val, self._replica_id, flush_op = _flush_fun(cache_val, self._replica_id,
training_util.get_or_create_global_step()) training_util.get_or_create_global_step())