[Grappler] Cleanup grappler function inlining rules wrt stateful and dataset ops.
Grappler doesn't try to be the "automatic control dependency tracking framework", if side-effects after inlining are not guaranteed to have well defined execution order, we just do not inline it, and don't try to fix it. This is a graph-construction problem that should be fixed in tf-eager auto-control dependencies tracking. In Agressive mode function optimizer skips this check and always inline. PiperOrigin-RevId: 230386480
Loading
Please sign in to comment