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

Method HloReachabilityMap

tensorflow/compiler/xla/service/hlo_reachability.cc:22–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20namespace xla {
21
22HloReachabilityMap::HloReachabilityMap(
23 absl::Span<const HloInstruction* const> instructions)
24 : size_(instructions.size()) {
25 bit_vectors_.reserve(size_);
26 for (const HloInstruction* hlo : instructions) {
27 indices_[GetKey(hlo)] = bit_vectors_.size();
28 bit_vectors_.emplace_back(size_);
29 }
30 CHECK_EQ(size_, indices_.size()); // instructions should be unique
31}
32
33bool HloReachabilityMap::SetReachabilityToUnion(
34 absl::Span<const HloInstruction* const> inputs,

Callers

nothing calls this directly

Calls 4

GetKeyFunction · 0.85
sizeMethod · 0.45
reserveMethod · 0.45
emplace_backMethod · 0.45

Tested by

no test coverage detected