Skip to content

Commit 9818d72

Browse files
hanrach9Google-ML-Automation
authored andcommitted
Copy result_accuracy when deriving new instruction.
PiperOrigin-RevId: 708366079
1 parent a3a74e2 commit 9818d72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xla/hlo/ir/hlo_instruction.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2648,7 +2648,7 @@ std::unique_ptr<HloInstruction> HloInstruction::CloneWithNewOperands(
26482648
case HloOpcode::kTan:
26492649
case HloOpcode::kTanh:
26502650
CHECK_EQ(new_operands.size(), 1);
2651-
clone = CreateUnary(shape, opcode_, new_operands[0]);
2651+
clone = CreateUnary(shape, opcode_, new_operands[0], result_accuracy());
26522652
break;
26532653
// Binary ops.
26542654
case HloOpcode::kAdd:

0 commit comments

Comments
 (0)