Commit 1cb06f58 authored by A. Unique TensorFlower's avatar A. Unique TensorFlower Committed by TensorFlower Gardener
Browse files

PUBLIC: [TF:XLA] Eliminate more copies after HLO scheduling.

After scheduling HLOs it is very beneficial to try more copy elision: The
sequential ordering from the schedule is stricter than the data-dependency ordering used
during copy insertion.

Also, allow more operands to share a buffer with their user. In particular, the user has to be element-wise only wrt to the specified operand, and not wrt to all operands.

These two changes allow more copies to be eliminated.

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