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

Method Release

tensorflow/compiler/xrt/xrt_util.cc:91–96  ·  view source on GitHub ↗

Releases the handle at the given index. The destructor will not use that XRTMemoryManager::Release() API on such handle.

Source from the content-addressed store, hash-verified

89 // Releases the handle at the given index. The destructor will not use that
90 // XRTMemoryManager::Release() API on such handle.
91 int64 Release(size_t index) {
92 int64 handle = handles_.at(index);
93 handles_[index] = XRTMemoryManager::InvalidKey();
94 handles_release_[index] = false;
95 return handle;
96 }
97
98 // Looks up the handle stored at the given index, and returns the matching
99 // tuple allocation.

Callers 4

~ScopedHandlesMethod · 0.45
AddMethod · 0.45
DropMethod · 0.45
ExecuteChainedFunction · 0.45

Calls 1

atMethod · 0.45

Tested by

no test coverage detected