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

Method Drop

tensorflow/compiler/xrt/xrt_util.cc:81–87  ·  view source on GitHub ↗

Drops the handle at the given index, and releases it using the XRTMemoryManager::Release() if marked as to-be-released.

Source from the content-addressed store, hash-verified

79 // Drops the handle at the given index, and releases it using the
80 // XRTMemoryManager::Release() if marked as to-be-released.
81 Status Drop(size_t index) {
82 if (handles_release_.at(index)) {
83 TF_RETURN_IF_ERROR(memory_manager_->Release(handles_[index]));
84 }
85 Release(index);
86 return Status::OK();
87 }
88
89 // Releases the handle at the given index. The destructor will not use that
90 // XRTMemoryManager::Release() API on such handle.

Callers 1

ExecuteChainedFunction · 0.45

Calls 2

atMethod · 0.45
ReleaseMethod · 0.45

Tested by

no test coverage detected