[tf.data] Optimize the performance of `tf.data.Iterator` in eager mode.
The change to introduce `Structure` into iterators regressed the per-element performance because it added redundant checks each time an element was produced. With this change, the performance is slightly better than it was before the move to `Structure`. PiperOrigin-RevId: 219532162
Loading
Please sign in to comment