Commit 92ca3508 authored by Derek Murray's avatar Derek Murray Committed by TensorFlower Gardener
Browse files

[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
parent f36951ea
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment