tensorflow/compiler/xla/service/spmd/schedule_aware_collective_ops_cse.cc
// Passthrough reshapes or bitcasts adding only degenerate hdimensions to some
// shape.
Passthrough reshapes or bitcasts adding only degenerate hdimensions to some
shape.
Passthrough reshapes or bitcasts adding only degenerate hdimensions to some shape .
const HloInstruction* PassthroughDegenerateAddingReshapes(
    const HloInstruction* inst) {
  while (IsAddingOnlyDegenerateDimensions(inst)) {
    inst = inst->operand(0);
  }
  return inst;
}
const HloInstruction * PassthroughDegenerateAddingReshapes ( const HloInstruction * inst ) { while ( IsAddingOnlyDegenerateDimensions ( inst ) ) { inst = inst -> operand ( 0 ) ; } return inst ; }
Passthrough reshapes or bitcasts adding only degenerate hdimensions to some
shape.
Passthrough reshapes or bitcasts adding only degenerate hdimensions to some shape .