Home
last modified time | relevance | path

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

12

/external/tensorflow/tensorflow/compiler/xla/service/
Dbuffer_value.h86 class BufferValue {
95 using SizeFunction = std::function<int64(const BufferValue&)>;
96 using AlignmentFunction = std::function<int64(BufferValue::Color)>;
98 virtual ~BufferValue();
144 bool operator<(const BufferValue& other) const { return id_ < other.id_; }
146 bool operator==(const BufferValue& other) const { return id_ == other.id_; }
147 bool operator!=(const BufferValue& other) const { return id_ != other.id_; }
162 BufferValue(HloInstruction* instruction, const ShapeIndex& index, Id id);
178 std::ostream& operator<<(std::ostream& out, const BufferValue& buffer);
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_memory_scheduler.cc83 const BufferValue::SizeFunction& size_function, in Run()
108 const BufferValue::SizeFunction& size_function, in ListScheduler()
384 const BufferValue::SizeFunction& size_function_;
405 const BufferValue::SizeFunction& size_function) { in SumLogicalBufferSizes()
417 const BufferValue::SizeFunction& size_function, in ScheduleComputationHelper()
439 const BufferValue::SizeFunction& size_function, in DFSMemoryScheduler()
546 const BufferValue::SizeFunction& size_function, in ListMemoryScheduler()
566 const BufferValue::SizeFunction& size_function, in PostOrderMemoryScheduler()
584 const BufferValue::SizeFunction& size_function, in DefaultMemoryScheduler()
642 const BufferValue::SizeFunction& size_function, int64* peak_memory) { in DefaultModuleScheduler()
[all …]
Dhlo_schedule_test.cc58 ScheduleModule(module.get(), [](const BufferValue& buffer) { in TEST_F()
92 ScheduleModule(module.get(), [](const BufferValue& buffer) { in TEST_F()
141 ScheduleModule(module.get(), [](const BufferValue& buffer) { in TEST_F()
185 ScheduleModule(module.get(), [](const BufferValue& buffer) { in TEST_F()
246 ScheduleModule(module.get(), [](const BufferValue& buffer) { in TEST_F()
315 ScheduleModule(module.get(), [](const BufferValue& buffer) { in TEST_F()
Dbuffer_value_containers.h30 tensorflow::gtl::CompactPointerSet<const BufferValue*>;
41 using BufferValueFlatSet = absl::flat_hash_set<const BufferValue*>;
Dhlo_buffer.h98 BufferValue::Color color() const { in color()
100 BufferValue::Color result = values()[0]->color(); in color()
Dhlo_memory_scheduler_test.cc90 HloMemoryScheduler scheduler([](const BufferValue& buffer) { in TEST_F()
141 auto size_fn = [](const BufferValue& buffer) { in TEST_F()
194 auto size_fn = [](const BufferValue& buffer) { in TEST_F()
247 [](const BufferValue& buffer) { in TEST_F()
298 [](const BufferValue& buffer) { in TEST_F()
Dheap_simulator.h147 const BufferValue::SizeFunction& size_fn,
159 const BufferValue::SizeFunction& size_fn,
171 const BufferValue::SizeFunction& size_fn, const HloSchedule* schedule,
179 const BufferValue::SizeFunction& size_fn,
214 const BufferValue::SizeFunction size_fn_;
Dbuffer_assignment.h499 BufferValue::SizeFunction buffer_size, in BufferAssignment()
570 BufferValue::SizeFunction buffer_size_;
594 value->set_color(BufferValue::Color( in DefaultColorer()
597 value->set_color(BufferValue::Color(0)); in DefaultColorer()
614 BufferValue::SizeFunction buffer_size,
635 BufferValue::SizeFunction buffer_size,
Dlogical_buffer.cc28 : BufferValue(instruction, index, id), in LogicalBuffer()
Dlogical_buffer.h35 class LogicalBuffer : public BufferValue {
Dcompiler.h295 std::function<int64(const BufferValue&)> BufferSizeBytesFunction() { in BufferSizeBytesFunction()
297 return [shape_size](const BufferValue& buffer) { in BufferSizeBytesFunction()
Dbuffer_assignment.cc614 flat_hash_map<BufferValue::Color, BufferAllocation*> combined_allocation_map; in CombineTempAllocations()
629 BufferValue::Color color = temp_allocation.color(); in CombineTempAllocations()
876 for (BufferValue::Id id = 0; id < dataflow.values().size(); id++) { in ToProto()
892 BufferValue::ToLocationProto(*alias->instruction(), alias->index()); in ToProto()
911 BufferValue::SizeFunction buffer_size, in Run()
1508 absl::flat_hash_map<BufferValue::Id, const HloValue*> id_to_value; in ComputePeakMemoryLogicalBuffers()
1595 BufferValue::Color color) { in AssignBuffersFromHeapSimulator()
1627 BufferValue::SizeFunction buffer_size, in CreateAssignment()
Dheap_simulator.cc100 const BufferValue::SizeFunction& size_fn, const Options& options) { in Run()
120 const BufferValue::SizeFunction& size_fn, const Options& options, in Run()
141 const BufferValue::SizeFunction& size_fn, const HloSchedule* schedule, in Run()
336 const BufferValue::SizeFunction& size_fn, const Options& options, in HeapSimulator()
Dhlo_value.h100 class HloValue : public BufferValue {
Dhlo_value.cc73 : BufferValue(instruction, index, id), is_phi_(is_phi) { in HloValue()
Dheap_simulator_test.cc86 auto size_fn = [](const BufferValue& buffer) { in TEST_F()
204 auto size_fn = [](const BufferValue& buffer) { in TEST_F()
321 auto size_fn = [&reverse_position](const BufferValue& buffer) { in RunWholeModule()
385 auto zero_size = [](const BufferValue& buffer) { return 0; }; in Init()
Dhlo_module_test.cc296 auto size_fn = [](const BufferValue& buffer) { in TEST_F()
Dhlo_rematerialization_test.cc48 [](const BufferValue& buffer) { return ByteSizeOf(buffer.shape()); }, in RunHloRematerialization()
Dmemory_space_assignment.h427 BufferValue::SizeFunction size_fn;
Dbuffer_assignment_test.cc590 value.set_color(BufferValue::Color(color++)); in TEST_F()
2049 static int64 ByteSizeOf(const BufferValue& buffer) { in ByteSizeOf()
2349 ScheduleModule(module.get(), [](const BufferValue& buffer) { in TEST_F()
/external/tensorflow/tensorflow/compiler/xla/service/llvm_ir/
Dbuffer_assignment_util.cc26 const BufferValue* buffer = buffer_offset_pair.first; in InstrForConstantBufferAllocation()
/external/tensorflow/tensorflow/compiler/xla/service/gpu/
Dgpu_hlo_schedule.cc205 entry_computation, [pointer_size](const BufferValue& buffer) { in Build()
Dgpu_compiler.cc528 [this](const BufferValue& buffer_value) -> int64 { in RunHloPassesAndBufferAssignement()
571 [pointer_size](const BufferValue& buffer_value) -> int64 { in CompileModuleToLlvmIrImpl()
/external/deqp/external/vulkancts/modules/vulkan/binding_model/
DvktBindingDescriptorCopyTests.cpp605 union BufferValue in init() union

12