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