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

Method Release

tensorflow/compiler/xla/client/global_data.cc:57–69  ·  view source on GitHub ↗

static */

Source from the content-addressed store, hash-verified

55}
56
57/* static */ void GlobalData::Release(
58 std::vector<std::unique_ptr<GlobalData>> instances) {
59 absl::flat_hash_map<ServiceInterface*, std::vector<GlobalDataHandle>>
60 parent_handles_map;
61 for (auto& instance : instances) {
62 if (instance->parent_ != nullptr) {
63 parent_handles_map[instance->parent_].push_back(instance->Release());
64 }
65 }
66 for (auto& parent_handles : parent_handles_map) {
67 ReleaseHandles(parent_handles.first, parent_handles.second);
68 }
69}
70
71} // namespace xla

Callers

nothing calls this directly

Calls 2

ReleaseHandlesFunction · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected