diff --git a/tensorflow/compiler/xla/service/hlo_instructions.cc b/tensorflow/compiler/xla/service/hlo_instructions.cc index 50e6b6bd884..bcc00d806da 100644 --- a/tensorflow/compiler/xla/service/hlo_instructions.cc +++ b/tensorflow/compiler/xla/service/hlo_instructions.cc @@ -1818,7 +1818,8 @@ bool HloRngInstruction::IdenticalSlowPath( const HloInstruction& other, const std::function& eq_computations) const { - return true; + const auto& casted_other = static_cast(other); + return distribution_ == casted_other.distribution_; } std::unique_ptr HloRngInstruction::CloneWithNewOperandsImpl(