Home
last modified time | relevance | path

Searched refs:new_instruction (Results 1 – 8 of 8) sorted by relevance

/external/tensorflow/tensorflow/compiler/xla/service/
Dstable_sort_expander.cc172 auto new_instruction = in ExpandInstruction() local
174 replacements[inst] = new_instruction.get(); in ExpandInstruction()
176 cloned_root = new_instruction.get(); in ExpandInstruction()
178 comparator->AddInstruction(std::move(new_instruction)); in ExpandInstruction()
Dhlo_clone_context.h45 HloInstruction* new_instruction) { in MapInstruction() argument
46 instructions_[old_instruction] = new_instruction; in MapInstruction()
Dhlo_computation.cc757 std::unique_ptr<HloInstruction> new_instruction) { in ReplaceWithNewInstruction() argument
759 AddInstruction(std::move(new_instruction))); in ReplaceWithNewInstruction()
763 HloInstruction* new_instruction) { in ReplaceInstruction() argument
765 ShapeUtil::Compatible(old_instruction->shape(), new_instruction->shape())) in ReplaceInstruction()
767 << ShapeUtil::HumanString(new_instruction->shape()); in ReplaceInstruction()
770 << new_instruction->ToString(); in ReplaceInstruction()
777 if (new_instruction->metadata().op_name().empty()) { in ReplaceInstruction()
778 new_instruction->set_metadata(old_instruction->metadata()); in ReplaceInstruction()
780 TF_RETURN_IF_ERROR(old_instruction->ReplaceAllUsesWith(new_instruction)); in ReplaceInstruction()
Dwhile_loop_invariant_code_motion.cc74 HloInstruction* new_instruction = in CreateLoopInvariantCopy() local
78 InsertOrDie(hoisted_instructions, old_instruction, new_instruction); in CreateLoopInvariantCopy()
Dbatchnorm_expander.cc141 std::unique_ptr<HloInstruction> new_instruction) { in ReplaceWithNewInstruction() argument
143 old_instruction, std::move(new_instruction))); in ReplaceWithNewInstruction()
152 HloInstruction* new_instruction) { in ReplaceInstruction() argument
154 computation_->ReplaceInstruction(old_instruction, new_instruction)); in ReplaceInstruction()
Dhlo_computation.h279 std::unique_ptr<HloInstruction> new_instruction);
285 HloInstruction* new_instruction);
Dalgebraic_simplifier.cc340 HloInstruction* new_instruction);
368 std::unique_ptr<HloInstruction> new_instruction) { in ReplaceWithNewInstruction() argument
371 VLOG(3) << " new: " << new_instruction->ToString(); in ReplaceWithNewInstruction()
373 old_instruction, std::move(new_instruction))); in ReplaceWithNewInstruction()
382 HloInstruction* new_instruction) { in ReplaceInstruction() argument
385 VLOG(3) << " new: " << new_instruction->ToString(); in ReplaceInstruction()
387 computation_->ReplaceInstruction(old_instruction, new_instruction)); in ReplaceInstruction()
480 HloInstruction* old_instruction, HloInstruction* new_instruction) { in ReplaceInstructionIfSameShape() argument
481 if (!SameShape(old_instruction, new_instruction)) { in ReplaceInstructionIfSameShape()
484 TF_CHECK_OK(ReplaceInstruction(old_instruction, new_instruction)); in ReplaceInstructionIfSameShape()
/external/tensorflow/tensorflow/compiler/xla/tools/
Dhlo_extractor.cc87 if (auto new_instruction = in FinishVisit() local
89 new_instruction->SetAndSanitizeName(old_instruction->name()); in FinishVisit()