Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/compiler/xla/service/
Dheap_simulator.h61 absl::flat_hash_map<const BufferValue*, Chunk> chunk_map;
119 const BufferValue::SizeFunction& size_fn,
131 const BufferValue::SizeFunction& size_fn,
141 const BufferValue::SizeFunction& size_fn,
151 bool IgnoreBuffer(const BufferValue* buffer) const;
152 void Alloc(const BufferValue* buffer, const HloInstruction* instruction);
153 void Free(const BufferValue* buffer, const HloInstruction* instruction);
154 void ShareBuffer(const BufferValue* buffer, const BufferValue* shared,
159 const BufferValue* buffer,
161 const BufferValue* share_with_canonical);
[all …]
Dbuffer_value.h87 class BufferValue {
96 using SizeFunction = std::function<int64(const BufferValue&)>;
97 using AlignmentFunction = std::function<int64(BufferValue::Color)>;
99 virtual ~BufferValue();
142 bool operator<(const BufferValue& other) const { return id_ < other.id_; }
144 bool operator==(const BufferValue& other) const { return id_ == other.id_; }
145 bool operator!=(const BufferValue& other) const { return id_ != other.id_; }
160 BufferValue(HloInstruction* instruction, const ShapeIndex& index, Id id);
176 std::ostream& operator<<(std::ostream& out, const BufferValue& buffer);
Dheap_simulator.cc77 const BufferValue::SizeFunction& size_fn, const Options& options) { in Run()
92 const BufferValue::SizeFunction& size_fn, const Options& options, in Run()
120 flat_hash_map<const BufferValue*, flat_hash_set<const HloInstruction*>> in RunComputation()
122 flat_hash_map<const HloInstruction*, flat_hash_set<const BufferValue*>> in RunComputation()
126 const BufferValue* buffer) { in RunComputation()
146 for (const BufferValue* buffer : buffer_set) { in RunComputation()
154 for (const BufferValue* buffer : points_to.element({})) { in RunComputation()
159 for (const BufferValue* buffer : gte_points_to.CreateFlattenedSet()) { in RunComputation()
171 std::vector<const BufferValue*> dead_buffers_to_free; in RunComputation()
172 std::vector<const BufferValue*> operand_buffers_to_free; in RunComputation()
[all …]
Dbuffer_value.cc28 BufferValue::BufferValue(HloInstruction* instruction, const ShapeIndex& index, in BufferValue() function in xla::BufferValue
36 BufferValue::~BufferValue() {} in ~BufferValue()
38 std::ostream& operator<<(std::ostream& out, const BufferValue& buffer) { in operator <<()
43 /*static*/ LogicalBufferProto::Location BufferValue::ToLocationProto( in ToLocationProto()
54 LogicalBufferProto BufferValue::ToProto(const SizeFunction& size_fn) const { in ToProto()
Dhlo_schedule_test.cc59 ScheduleModule(module.get(), [](const BufferValue& buffer) { in TEST_F()
93 ScheduleModule(module.get(), [](const BufferValue& buffer) { in TEST_F()
142 ScheduleModule(module.get(), [](const BufferValue& buffer) { in TEST_F()
186 ScheduleModule(module.get(), [](const BufferValue& buffer) { in TEST_F()
247 ScheduleModule(module.get(), [](const BufferValue& buffer) { in TEST_F()
316 ScheduleModule(module.get(), [](const BufferValue& buffer) { in TEST_F()
Dheap_simulator_test.cc85 auto size_fn = [](const BufferValue& buffer) { in TEST_F()
203 auto size_fn = [](const BufferValue& buffer) { in TEST_F()
225 using CallSequence = std::vector<std::pair<string, const BufferValue*>>;
233 void Alloc(const BufferValue* buffer, int64 size) override { in Alloc()
241 void Free(const BufferValue* buffer, int64 size) override { in Free()
272 auto zero_size = [](const BufferValue& buffer) { return 0; }; in HeapSimulatorTracker()
308 auto size_fn = [&reverse_position](const BufferValue& buffer) { in RunWholeModule()
321 const BufferValue* BufferAt(const HloInstruction* instruction, in BufferAt()
328 const BufferValue* buffer = BufferAt(instruction, index); in OffsetAt()
788 const BufferValue* buffer_a_;
[all …]
Dbuffer_value_containers.h30 tensorflow::gtl::CompactPointerSet<const BufferValue*>;
41 using BufferValueFlatSet = absl::flat_hash_set<const BufferValue*>;
Dhlo_memory_scheduler_test.cc71 HloMemoryScheduler scheduler([](const BufferValue& buffer) { in TEST_F()
122 auto size_fn = [](const BufferValue& buffer) { in TEST_F()
180 [](const BufferValue& buffer) { in TEST_F()
231 [](const BufferValue& buffer) { in TEST_F()
284 auto size_fn = [](const BufferValue& buffer) { in TEST_F()
Dcompiler.h250 std::function<int64(const BufferValue&)> BufferSizeBytesFunction() { in BufferSizeBytesFunction()
252 return [shape_size](const BufferValue& buffer) { in BufferSizeBytesFunction()
Dlogical_buffer.cc28 : BufferValue(instruction, index, id), in LogicalBuffer()
Dlogical_buffer.h35 class LogicalBuffer : public BufferValue {
Dhlo_value.h88 class HloValue : public BufferValue {
Dhlo_value.cc72 : BufferValue(instruction, index, id), is_phi_(is_phi) { in HloValue()
Dhlo_module_test.cc298 auto size_fn = [](const BufferValue& buffer) { in TEST_F()
Dhlo_rematerialization_test.cc148 [](const BufferValue& buffer) { return ByteSizeOf(buffer.shape()); }, in RunHloRematerialization()
Dbuffer_assignment_test.cc1901 static int64 ByteSizeOf(const BufferValue& buffer) { in ByteSizeOf()
2201 ScheduleModule(module.get(), [](const BufferValue& buffer) { in TEST_F()
Dbuffer_assignment.cc718 BufferValue::ToLocationProto(*alias.instruction(), alias.index()); in ToProto()
/external/tensorflow/tensorflow/compiler/xla/service/gpu/
Dgpu_hlo_schedule.cc205 entry_computation, [pointer_size](const BufferValue& buffer) { in Build()