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

Method ComputePositions

tensorflow/compiler/xla/service/hlo_buffer.cc:45–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45std::vector<HloPosition> HloBuffer::ComputePositions() const {
46 std::vector<HloPosition> positions;
47 for (const HloValue* value : values_) {
48 positions.insert(positions.end(), value->positions().begin(),
49 value->positions().end());
50 }
51 // Remove duplicates and sort positions.
52 absl::c_sort(positions);
53 positions.erase(std::unique(positions.begin(), positions.end()),
54 positions.end());
55 return positions;
56}
57
58string HloBuffer::ToString() const {
59 return absl::StrCat(

Callers 2

ToStringMethod · 0.80
TEST_FFunction · 0.80

Calls 5

uniqueFunction · 0.50
insertMethod · 0.45
endMethod · 0.45
beginMethod · 0.45
eraseMethod · 0.45

Tested by 1

TEST_FFunction · 0.64