mirror of
https://github.com/zebrajr/tensorflow.git
synced 2026-01-15 12:15:41 +00:00
Disable capturing of dot RHS operands
This is proving to be unreliable. PiperOrigin-RevId: 826395008
This commit is contained in:
committed by
TensorFlower Gardener
parent
d6d4e02248
commit
8734ec41d5
@@ -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};
|
||||
|
||||
Reference in New Issue
Block a user