Commit 037f036b authored by Derek Murray's avatar Derek Murray Committed by TensorFlower Gardener
Browse files

Mark a FunctionDef's signature as stateful when it contains a stateful node.

This fixes a bug where two calls to the same stateful function will erroneously be eliminated as common subexpressions. It is also a step towards pruning nodes from function bodies, which is necessary for a variety of `Dataset` optimizations.

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