Home
last modified time | relevance | path

Searched refs:fused_instruction (Results 1 – 5 of 5) sorted by relevance

/external/tensorflow/tensorflow/compiler/xla/service/
Ddefuser.cc65 for (HloInstruction* fused_instruction : in Defuse()
67 if (fused_instruction->opcode() == HloOpcode::kParameter) { in Defuse()
71 for (HloInstruction* operand : fused_instruction->operands()) { in Defuse()
76 fused_instruction->CloneWithNewOperands(fused_instruction->shape(), in Defuse()
78 defused_instructions[fused_instruction] = defused_instruction; in Defuse()
Dlayout_assignment.cc1682 for (auto* fused_instruction : in SetFusionLayouts() local
1684 if (fused_instruction->opcode() == HloOpcode::kParameter) { in SetFusionLayouts()
1686 fusion->operand(fused_instruction->parameter_number()); in SetFusionLayouts()
1688 fused_instruction->shape())); in SetFusionLayouts()
1690 fusion_operand->shape(), fused_instruction->mutable_shape())); in SetFusionLayouts()
1691 } else if (fused_instruction == fusion->fused_expression_root()) { in SetFusionLayouts()
1695 ShapeUtil::Compatible(fusion->shape(), fused_instruction->shape())); in SetFusionLayouts()
1697 fusion->shape(), fused_instruction->mutable_shape())); in SetFusionLayouts()
1698 } else if (fused_instruction->opcode() == HloOpcode::kGetTupleElement) { in SetFusionLayouts()
1702 fused_instruction->operand(0)->shape().tuple_shapes( in SetFusionLayouts()
[all …]
Dreshape_mover.cc216 for (const auto& fused_instruction : instruction->fused_instructions()) { in PerformSinkReshapeOrTranspose() local
217 Shape* shape = fused_instruction->mutable_shape(); in PerformSinkReshapeOrTranspose()
Dhlo_instructions.cc1477 auto fused_instruction = *fused_it; in MergeFusionInstruction() local
1478 if (fused_instruction->opcode() == HloOpcode::kParameter) { in MergeFusionInstruction()
1480 fused_instruction->ReplaceAllUsesWith(cloned_fusion->mutable_operand( in MergeFusionInstruction()
1481 fused_instruction->parameter_number()))); in MergeFusionInstruction()
1483 unfused_instructions.push_back(fused_instruction); in MergeFusionInstruction()
1540 auto fused_instruction = *rit; in MergeFusionInstructionIntoMultiOutput() local
1541 if (fused_instruction->opcode() == HloOpcode::kParameter) { in MergeFusionInstructionIntoMultiOutput()
1542 InsertOrDie(&old_to_new, fused_instruction, in MergeFusionInstructionIntoMultiOutput()
1544 fused_instruction->parameter_number())); in MergeFusionInstructionIntoMultiOutput()
1551 parent()->AddInstruction(fused_instruction->Clone()); in MergeFusionInstructionIntoMultiOutput()
[all …]
/external/tensorflow/tensorflow/compiler/xla/service/gpu/
Dfusion_merger.cc91 for (auto* fused_instruction : fusion->fused_instructions()) { in CalculateBytesReadByFusionInstruction() local
92 if (fused_instruction->opcode() != HloOpcode::kParameter) { in CalculateBytesReadByFusionInstruction()
95 bytes += CalculateBytesReadByFusionParameter(fused_instruction); in CalculateBytesReadByFusionInstruction()