Commit 53f86b3c authored by Derek Murray's avatar Derek Murray Committed by TensorFlower Gardener
Browse files

[tf.data] Generate a warning when `Iterator.get_next()` is called repeatedly.

This is an antipattern that adds nodes to the graph, causes poor performance,
and can cause resource exhaustion. The warning suggests an alternative course
of action. It has cropped up in several places (#15162 being the most recent
issue), and this warning should help users help themselves.

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