Commit 5702b86c authored by Jiri Simsa's avatar Jiri Simsa Committed by TensorFlower Gardener
Browse files

[tf.data] Marking dataset ops that consume a dataset without an iterator as...

[tf.data] Marking dataset ops that consume a dataset without an iterator as stateful to make sure they are not prune from the graph in case their output is not used.

This is a conservative approach to guarantee that any side-effects of the op are carried out.

This CL also reverts a previous (incomplete) solution to the same problem.

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