MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / GetAllSlices

Method GetAllSlices

tensorflow/compiler/xla/service/buffer_assignment.cc:414–424  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

412}
413
414std::set<BufferAllocation::Slice> BufferAssignment::GetAllSlices(
415 const HloInstruction* instruction, const ShapeIndex& index) const {
416 std::set<BufferAllocation::Slice> result;
417 for (const HloValue* value :
418 dataflow_analysis().GetValueSet(instruction, index).values()) {
419 if (HasAllocation(*value)) {
420 result.insert(GetAssignedAllocation(*value).GetSlice(*value));
421 }
422 }
423 return result;
424}
425
426const BufferAllocation& BufferAssignment::GetAllocation(
427 BufferAllocation::Index index) const {

Callers 2

TEST_FFunction · 0.80
AssignSingleHloBufferMethod · 0.80

Calls 3

valuesMethod · 0.45
insertMethod · 0.45
GetSliceMethod · 0.45

Tested by 1

TEST_FFunction · 0.64