Disable capturing of dot RHS operands

This is proving to be unreliable.

PiperOrigin-RevId: 826395008
This commit is contained in:
A. Unique TensorFlower
2025-10-31 02:22:48 -07:00
committed by TensorFlower Gardener
parent d6d4e02248
commit 8734ec41d5

View File

@@ -1553,9 +1553,9 @@ absl::StatusOr<ThunkSequence> ThunkEmitter::EmitYnnFusionThunk(
absl::Span<const int64_t> captured_arguments_ids;
if (instruction->opcode() == HloOpcode::kDot) {
const HloDotInstruction* dot = Cast<HloDotInstruction>(instruction);
// TODO(ashaposhnikov): Revisit this if we ever get a reliable way
// to determine that RHS is constant.
bool capture_rhs = HloPredicateIsOp<HloOpcode::kParameter>(dot->operand(1));
// TODO(b/455903737): If we know the RHS is a constant, we should capture it
// here.
bool capture_rhs = false;
// Construct YNNPACK subgraph builder from the dot instruction.
TF_ASSIGN_OR_RETURN(builder, EmitYnnDotBuilder(dot, capture_rhs));
static constexpr int64_t kCapturedIds[1] = {1};