Commit 8dfb7532 authored by A. Unique TensorFlower's avatar A. Unique TensorFlower Committed by TensorFlower Gardener
Browse files

Improve the implementation of HloSharding::GetSubSharding

The new implementation iterates the ShapeIndex and the flat HloSharding
directly instead of constructing a ShapeTree what provides a significant
performance benefit for large tuple shapes.

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