Commit f972d800 authored by Justin Lebar's avatar Justin Lebar Committed by TensorFlower Gardener
Browse files

[XLA] Replace HloComputation::ReplaceUsesOfInstruction with HloInstruction::ReplaceAllUsesWith.

RAUW used to be *almost* synonymous with RUOI, except RAUW didn't update
the computation's root.  This was a dangerous footgun -- if you
accidentally called RAUW when you wanted RUOI (which you almost always
did), your code would work perfectly, except when the relevant node
happened to be the root of a computation.

This change simplifies our APIs so there's just one Right Way To Do It,
by making RAUW update the computation.

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