Commit 55b4d5dd authored by Brennan Saeta's avatar Brennan Saeta Committed by TensorFlower Gardener
Browse files

Use enumerate instead of manually incrementing i in

multi_device_iterator_ops.py

Using enumerate(..) both shortens the code, and is more pythonic due to
reducing the chance a future refactoring accidentally misses the += 1.

PiperOrigin-RevId: 218718575
parent 5982692e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment