Commit 215b91dd authored by Akshay Agrawal's avatar Akshay Agrawal Committed by TensorFlower Gardener
Browse files

Fix use-after-free in (Stateful)PartitionedCallOp.

Before the introduction of StatefulPartitionedCallOp, it was guaranteed that the function would only be partitioned once. That this invariant is no longer true was not reflected in the code prior to this change --- `overlay_lib_` was reset every time the function was re-partitioned. The FunctionLibraryRuntime keeps pointers to overlay libraries, so we need to keep the objects around.

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