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

Method HasAllocation

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

Source from the content-addressed store, hash-verified

388}
389
390bool BufferAssignment::HasAllocation(const HloValue& value) const {
391 return allocation_index_for_value_.contains(&value);
392}
393
394bool BufferAssignment::HasAllocation(const HloBuffer& buffer) const {
395 return allocation_index_for_value_.contains(buffer.values()[0]);

Callers 4

MaybeAssignBufferMethod · 0.80
AssignSingleHloBufferMethod · 0.80
CreateAssignmentMethod · 0.80

Calls 2

containsMethod · 0.80
valuesMethod · 0.45

Tested by

no test coverage detected