Tensor tracer python3 compatibility.

PiperOrigin-RevId: 314863876
Change-Id: Iec44c5bf59eb8eac3615e083a72944a2bd06c354
This commit is contained in:
Mehmet Deveci 2020-06-04 21:55:32 -07:00 committed by TensorFlower Gardener
parent 75c40f6bff
commit 17834a43d1

View File

@ -1844,7 +1844,7 @@ class TensorTracer(object):
if len(processed_tensors) != 1:
raise RuntimeError('Multiple stats are only allowed in compact '
'mode.')
processed_out_tensor = processed_tensors.values()[0]
processed_out_tensor = list(processed_tensors.values())[0]
# Store the whole tensor in a buffer.
trace_op = self._snapshot_tensor(processed_out_tensor)
else: