Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PR tensorflow#10395: Handle missing collective_permute in collective-…
…permute-motion Imported from GitHub PR openxla/xla#10395 Currently, the `MoveCollectivePermutes` function expects that if `FindMovableClusterAtBodyRoot` function returns a cluster, then the cluster's `collective_permute` field is not null. However, if `FindMovableClusterAtBodyRoot` does not find a collective_permute on when traversing an input, it happily returns cluster with `collective_permute == null`. This patch just returns `nullopt` for a 'cluster' without collective-permute. Fixes tensorflow#10394. Copybara import of the project: -- bf69727505c62b0bba36ad28ddaad36f07f816e3 by Jaroslav Sevcik <[email protected]>: Handle missing collective_permute Merging this change closes tensorflow#10395 PiperOrigin-RevId: 615753210
- Loading branch information