Home
last modified time | relevance | path

Searched refs:HloUse (Results 1 – 18 of 18) sorted by relevance

/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_value.h71 struct HloUse { struct
83 bool operator==(const HloUse& other) const { argument
89 bool operator!=(const HloUse& other) const { return !(*this == other); }
92 friend H AbslHashValue(H h, const HloUse& use) { in AbslHashValue() argument
98 std::ostream& operator<<(std::ostream& out, const HloUse& use);
151 absl::Span<const HloUse> GetUses() const { in GetUses()
153 [this](std::vector<HloUse>& uses) { ComputeUses(uses); }); in GetUses()
189 void ComputeUses(std::vector<HloUse>& uses) const;
197 Lazy<std::vector<HloUse>> uses_;
Dhlo_value.cc59 std::string HloUse::ToString() const { in ToString()
67 std::ostream& operator<<(std::ostream& out, const HloUse& use) { in operator <<()
94 for (const HloUse& use : GetUses()) { in ToString()
156 void HloValue::ComputeUses(std::vector<HloUse>& uses) const { in ComputeUses()
177 HloUse new_use{user, i, position.index}; in ComputeUses()
180 for (const HloUse& use : uses) { in ComputeUses()
Dhlo_dataflow_analysis_test.cc143 UnorderedElementsAre(HloUse{add, 0, {}})); in TEST_P()
145 UnorderedElementsAre(HloUse{add, 1, {}})); in TEST_P()
202 UnorderedElementsAre(HloUse{add, 0, {}})); in TEST_P()
204 UnorderedElementsAre(HloUse{add, 1, {}})); in TEST_P()
206 UnorderedElementsAre(HloUse{gte0, 0, {}}, HloUse{gte1, 0, {}})); in TEST_P()
244 UnorderedElementsAre(HloUse{gte_out, 0, {0}})); in TEST_P()
249 UnorderedElementsAre(HloUse{gte_out, 0, {}})); in TEST_P()
251 UnorderedElementsAre(HloUse{gte_tuple, 0, {}})); in TEST_P()
305 UnorderedElementsAre(HloUse{call, 0, {}}, HloUse{add, 0, {}})); in TEST_P()
307 UnorderedElementsAre(HloUse{call, 1, {}}, HloUse{add, 1, {}})); in TEST_P()
[all …]
Dmemory_space_assignment.h142 float GetAlternateMemoryBenefit(const HloUse& use,
251 const HloUse* use) const = 0;
277 virtual void Begin(const HloUse& use, int64_t start_time,
347 const HloUse* use) const override;
359 void Begin(const HloUse& use, int64_t start_time, int64_t end_time) override;
412 const HloUse* use) const override;
424 void Begin(const HloUse& use, int64_t start_time, int64_t end_time) override;
494 std::function<bool(const HloUse&)>;
557 void AddUse(HloUse use);
589 const std::vector<HloUse>& uses() const { return uses_; } in uses()
[all …]
Dhlo_ordering.cc214 absl::Span<const HloUse* const> uses, const HloValue& value, in UsesBeforeValueDefinition()
219 auto UseIsBeforeValueDefinition = [&](const HloUse& use) { in UsesBeforeValueDefinition()
419 std::vector<const HloUse*> uses; in LiveRangeStrictlyBefore()
420 for (const HloUse& use : a.GetUses()) { in LiveRangeStrictlyBefore()
Dmemory_space_assignment.cc115 absl::c_all_of(value.GetUses(), [&](const HloUse& use) { in IsCrossProgramPrefetchCandidate()
231 std::string UsesToString(const std::vector<HloUse>& uses) { in UsesToString()
305 for (const HloUse& use : value->GetUses()) { in GetMemoryBoundedness()
345 const HloUse& use, MemorySpaceAssignmentCostAnalysis::Cache* cache) const { in GetAlternateMemoryBenefit()
494 const HloUse* use) const { in LatestPrefetchStartTime()
517 void InstructionCountPrefetchIntervalPicker::Begin(const HloUse& use, in Begin()
681 const HloUse* use) const { in LatestPrefetchStartTime()
771 void CostAnalysisPrefetchIntervalPicker::Begin(const HloUse& use, in Begin()
1045 std::vector<HloUse> uses(value->GetUses().begin(), value->GetUses().end()); in CreateAllocationValues()
1046 absl::c_stable_sort(uses, [&](const HloUse& use1, const HloUse& use2) { in CreateAllocationValues()
[all …]
Dhlo_alias_analysis.cc78 for (const HloUse& use : value.GetUses()) { in ComputeWhileAliasedValues()
185 for (const HloUse& use : value.GetUses()) { in ComputeInPlaceOperationAliasedValues()
205 for (const HloUse& use : value.GetUses()) { in ComputeAliasedValues()
Dmemory_space_propagation.cc106 for (const HloUse& use : value.GetUses()) { in Propagate()
Dhlo_ordering.h82 absl::Span<const HloUse* const> uses, const HloValue& value,
Dcopy_insertion.cc1138 std::vector<const HloUse*> uses;
1220 for (const HloUse& use : value->GetUses()) { in AddValueList()
1289 for (const HloUse* use : p->uses) { in Verify()
1542 const HloUse* use) { in RemoveCopyValue()
1551 for (const HloUse* copy_use : copy_value_node->uses) { in RemoveCopyValue()
1737 [](std::string* s, const HloUse* use) { in ToString()
1903 for (const HloUse& use : value->GetUses()) { in AddSpecialCaseCopies()
Dloop_schedule_linearizer.cc110 for (const HloUse& use : value_at_input.GetUses()) { in AddControlEdgesForLoopWrites()
Dhlo_dataflow_analysis.cc1629 for (const HloUse& use : value->GetUses()) { in DoesNotUseOperandBuffer()
1879 for (const HloUse& use : in CanShareOperandBufferWithUser()
1881 if (use == HloUse{user, operand_and_output_index.first.operand_number, in CanShareOperandBufferWithUser()
1932 const HloUse& use = fusion_param_value.GetUses()[0]; in CanShareOperandBufferWithUser()
1988 absl::c_find_if(uses, [user](const HloUse& use) { in CanShareOperandBufferWithUser()
1993 absl::c_find_if(uses, [callee_root](const HloUse& use) { in CanShareOperandBufferWithUser()
Dhlo_ordering_test.cc285 const HloUse* while_use = in TEST_F()
586 auto tuple_use = HloUse{root, 0}; in TEST_F()
Dmemory_space_assignment_test.cc4107 options.is_use_allowed_in_alternate_mem_fn = [](const HloUse& use) { in TEST_P()
4174 options.is_use_allowed_in_alternate_mem_fn = [](const HloUse& use) { in TEST_P()
6700 auto is_cross_program_prefetch = [](const HloUse& use) { in TEST_P()
6707 auto is_end_of_program_prefetch = [](const HloUse& use) { in TEST_P()
6779 auto is_cross_program_prefetch = [](const HloUse& use) { in TEST_P()
6786 auto is_end_of_program_prefetch = [](const HloUse& use) { in TEST_P()
6858 auto is_cross_program_prefetch = [](const HloUse& use) { in TEST_P()
6865 auto is_end_of_program_prefetch = [](const HloUse& use) { in TEST_P()
6918 auto is_cross_program_prefetch = [](const HloUse& use) { in TEST_P()
6925 auto is_end_of_program_prefetch = [](const HloUse& use) { in TEST_P()
[all …]
Dhlo_live_range.cc153 for (const HloUse& use : value.GetUses()) { in GetLastUsageTime()
Dbfloat16_propagation.cc252 for (const HloUse& use : value->GetUses()) { in AllUsersConsumeBF16()
Dbuffer_assignment.cc887 for (const HloUse& use : buffer.GetUses()) { in BufferInfoString()
/external/tensorflow/tensorflow/compiler/xla/tests/
Dtest_utils.cc499 bool NeedsInitValue(const HloUse& use) { in NeedsInitValue()
555 for (const HloUse& use : value.GetUses()) { in FindConstrainedUses()