Home
last modified time | relevance | path

Searched refs:tuple_index (Results 1 – 25 of 36) sorted by relevance

12

/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_module_dce_test.cc49 const int64 tuple_index) { in WhileBodyHasPassThroughTupleElement() argument
59 auto* operand = while_body_root->operand(tuple_index); in WhileBodyHasPassThroughTupleElement()
61 operand->tuple_index() == tuple_index && in WhileBodyHasPassThroughTupleElement()
Dwhile_loop_constant_sinking.cc30 HloInstruction* while_body_root, int64 tuple_index) { in ReplaceUsesWhileKeepingLoopInvariance() argument
40 !(user == while_body_root && i == tuple_index)) { in ReplaceUsesWhileKeepingLoopInvariance()
68 int64 index = invariant_body_gte->tuple_index(); in TrySinkingConstantsIntoWhileLoop()
Dar_crs_combiner.cc137 GetAllTuples(tuple->mutable_operand(instruction->tuple_index())); in GetAllTuples()
221 return i1->tuple_index() == i2->tuple_index() || in InstructionsComputeSameValue()
222 TupleElementsComputeSameValue(operands1[0], i1->tuple_index(), in InstructionsComputeSameValue()
223 i2->tuple_index(), visited_pairs); in InstructionsComputeSameValue()
Dtuple_simplifier.cc84 operand->tuple_index() != operand_number) { in Run()
119 instruction->tuple_index()); in Run()
Dsort_simplifier.cc51 used_indices.insert(user->tuple_index()); in RemoveUnusedOperandFromSort()
131 user->ReplaceAllUsesWith(result_map.at(user->tuple_index()))); in RemoveUnusedOperandFromSort()
Dhlo_matchers.h77 int64 tuple_index) in HloGetTupleElementMatcher() argument
79 tuple_index_(tuple_index) {}
305 ::testing::Matcher<const HloInstruction*> operand, int64 tuple_index) { in GetTupleElement() argument
307 new ::xla::testing::HloGetTupleElementMatcher(operand, tuple_index)); in GetTupleElement()
Dhlo_matchers.cc114 if (instruction->tuple_index() != tuple_index_) { in MatchAndExplain()
115 *listener << "has wrong tuple index (got " << instruction->tuple_index() in MatchAndExplain()
Dwhile_loop_simplifier.cc111 while_body_root->operand_index(user) == user->tuple_index() && in TryRemoveDeadWhileParams()
116 used_tuple_indices.insert(user->tuple_index()); in TryRemoveDeadWhileParams()
136 operand->tuple_index() != i) { in TryRemoveDeadWhileParams()
201 int64 old_idx = user->tuple_index(); in TryRemoveDeadWhileParams()
553 VLOG(3) << "tuple index " << instr->tuple_index() << " " in TryPropagateConstant()
555 auto iter = index_to_constant.find(instr->tuple_index()); in TryPropagateConstant()
Dpattern_matcher.h1553 explicit constexpr HloInstructionPatternTupleIndexImpl(int64 tuple_index)
1554 : tuple_index_(tuple_index) {}
1576 if (inst->tuple_index() != tuple_index_) {
1966 constexpr auto WithTupleIndex(int64 tuple_index) const -> decltype(
1967 this->AppendImpl(HloInstructionPatternTupleIndexImpl(tuple_index))) {
1968 return AppendImpl(HloInstructionPatternTupleIndexImpl(tuple_index));
2364 inline auto GetTupleElement(Arg&& arg, int64 tuple_index)
2367 .WithTupleIndex(tuple_index)) {
2371 .WithTupleIndex(tuple_index);
2376 int64 tuple_index)
[all …]
Dwhile_util.cc267 instr->tuple_index() == i && in GetInvariantGTEsForWhileBody()
282 result[user->tuple_index()].push_back(user); in GetGTEsMapForWhileConditional()
Dwhile_loop_analysis.cc67 int64 tuple_idx = (*gte_it)->tuple_index(); in GetGTEOperandIndex()
456 int64 indvar_index = cond_gte->tuple_index(); in ComputeWhileLoopTripCountUpperBound()
Dhlo_cse.cc101 ? instruction->tuple_index() in CseHash()
Dtuple_points_to_analysis_test.cc736 HloInstruction* fusion_param, int64 tuple_index) { in GetFusionParameterUsersAt() argument
741 if (user->tuple_index() == tuple_index) { in GetFusionParameterUsersAt()
750 int64 tuple_index) { in GetUniqueFusionParameterUserAt() argument
752 GetFusionParameterUsersAt(fusion_param, tuple_index); in GetUniqueFusionParameterUserAt()
Dbfloat16_conversion_folding.cc211 per_tuple_element_gtes[user->tuple_index()].push_back(user); in HandleAllReduce()
Dhlo_liveness_analysis.cc159 operand_shape_index.push_front(instruction->tuple_index()); in PropagateLivenessThroughGTE()
Dhlo_computation_test.cc291 EXPECT_EQ(0, tuple_copy->operand(0)->operand(0)->tuple_index()); in TEST_F()
292 EXPECT_EQ(1, tuple_copy->operand(1)->operand(0)->tuple_index()); in TEST_F()
Dhlo_sharding_metadata.cc277 ? sharding_tree.find({user->tuple_index()}) in ApplyShardingFromUsers()
Dhlo_instructions.cc1514 int64 old_tuple_index = old_gte->tuple_index(); in CloneAndFuseInternal()
1709 return {StrCat("index=", tuple_index())}; in ExtraAttributesToStringImpl()
1718 return tuple_index() == casted_other.tuple_index(); in IdenticalSlowPath()
1727 shape, new_operands[0], tuple_index()); in CloneWithNewOperandsImpl()
Ddynamic_dimension_inference.cc114 if (hlo->tuple_index() == index[0]) { in HandleGetTupleElement()
Dtuple_points_to_analysis.cc223 int64 element_index = get_tuple_element->tuple_index(); in HandleGetTupleElement()
/external/python/cpython3/Objects/clinic/
Dtupleobject.c.h14 {"index", (PyCFunction)tuple_index, METH_FASTCALL, tuple_index__doc__},
21 tuple_index(PyTupleObject *self, PyObject *const *args, Py_ssize_t nargs) in tuple_index() function
/external/tensorflow/tensorflow/compiler/xla/service/gpu/
Dwhile_transformer_test.cc38 const int64 tuple_index, const int64 limit) { in BuildConditionComputation() argument
43 0, GetLoopStateShape(tuple_index), "loop_state")); in BuildConditionComputation()
46 limit_const->shape(), loop_state, tuple_index)); in BuildConditionComputation()
Dhlo_to_ir_bindings.cc137 gte->shape(), gte->tuple_index(), /*alignment=*/1, in EmitGetTupleElement()
141 gte->shape(), gte->tuple_index(), /*alignment=*/1, in EmitGetTupleElement()
Dir_emitter.cc115 get_tuple_element->shape(), get_tuple_element->tuple_index(), in HandleGetTupleElement()
/external/tensorflow/tensorflow/compiler/xla/service/llvm_ir/
Dfused_ir_emitter.cc125 get_tuple_element->tuple_index(), in HandleGetTupleElement()

12