Commit f23efde5 authored by Yunxing Dai's avatar Yunxing Dai Committed by TensorFlower Gardener
Browse files

Keep the old instruction alive when replacing instructions in GetDimensionSizeRewriter.

Otherwise it could create use-after-free if we delete and iterate
through instructions at the same time.

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