[XLA] Enhancement to source tensor indexing.
Change ElementalIrEmitter::ElementwiseSourceIndex to use the target index as a source index for the case where the two tensors have the same shape but different element types. This improves the implementation of fusion kernels by avoiding the calculation of the dimensional indices from the linear index for the source tensors. PiperOrigin-RevId: 177036769
Loading
Please sign in to comment