Support degenerate strided slicing under XLA.
For example, when start, end, and stride are all positive, but `start` is greater than `end`, tf2xla used to raise an error instead of returning a tensor with that dimension size being 0. Latter is the regular tensorflow and python behavior. This change makes XLA behave the same way. PiperOrigin-RevId: 186695842
Loading
Please sign in to comment