Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/compiler/xla/service/
Dwhile_loop_simplifier.cc55 HloInstruction* while_body_root = while_body->root_instruction(); in RemoveDeadTupleIndices() local
92 if (user == while_body_root) { in RemoveDeadTupleIndices()
110 user->users().front() == while_body_root) in RemoveDeadTupleIndices()
138 while_body_root->mutable_operand(old_idx)); in RemoveDeadTupleIndices()
141 while_body_root, HloInstruction::CreateTuple(new_while_body_root_elems)); in RemoveDeadTupleIndices()
227 HloInstruction* while_body_root = while_body->root_instruction(); in TryRemoveDeadWhileParams() local
234 if (while_body_root->opcode() != HloOpcode::kTuple) { in TryRemoveDeadWhileParams()
278 if (user->user_count() == 1 && user->users().front() == while_body_root && in TryRemoveDeadWhileParams()
279 while_body_root->operand_index(user) == user->tuple_index() && in TryRemoveDeadWhileParams()
280 absl::c_count(while_body_root->operands(), user) == 1) { in TryRemoveDeadWhileParams()
[all …]
Dwhile_loop_analysis.cc135 auto* while_body_root = while_body->root_instruction(); in GetAuxiliaryLoopInductionVars() local
136 if (while_body_root->opcode() != HloOpcode::kTuple) { in GetAuxiliaryLoopInductionVars()
137 VLOG(2) << "While body root is not a tuple:" << while_body_root->ToString(); in GetAuxiliaryLoopInductionVars()
142 for (const HloInstruction* operand : while_body_root->operands()) { in GetAuxiliaryLoopInductionVars()
271 auto* while_body_root = while_body->root_instruction(); in GetLoopInductionVarTupleIdx() local
272 if (while_body_root->opcode() != HloOpcode::kTuple) { in GetLoopInductionVarTupleIdx()
274 << while_body_root->ToString(); in GetLoopInductionVarTupleIdx()
278 auto* while_body_inc = while_body_root->operand(*indvar_tuple_idx); in GetLoopInductionVarTupleIdx()
591 auto* while_body_root = while_body->root_instruction(); in ComputeWhileLoopTripCountUpperBound() local
592 if (while_body_root->opcode() != HloOpcode::kTuple) { in ComputeWhileLoopTripCountUpperBound()
[all …]
Dhlo_module_dce.cc53 auto* while_body_root = while_body_comp->root_instruction(); in RunWhileDCE() local
56 while_body_root->opcode() != HloOpcode::kTuple) { in RunWhileDCE()
84 while_body_root->ReplaceOperandWith(i, pass_thru_gte)); in RunWhileDCE()
Dwhile_loop_constant_sinking.cc30 HloInstruction* while_body_root, int64 tuple_index) { in ReplaceUsesWhileKeepingLoopInvariance() argument
31 CHECK_EQ(while_body_root->opcode(), HloOpcode::kTuple); in ReplaceUsesWhileKeepingLoopInvariance()
40 !(user == while_body_root && i == tuple_index)) { in ReplaceUsesWhileKeepingLoopInvariance()
Dhlo_module_dce_test.cc54 auto* while_body_root = while_body_comp->root_instruction(); in WhileBodyHasPassThroughTupleElement() local
55 if (while_body_root->opcode() != HloOpcode::kTuple) { in WhileBodyHasPassThroughTupleElement()
58 auto* operand = while_body_root->operand(tuple_index); in WhileBodyHasPassThroughTupleElement()