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
Loading
Please sign in to comment