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

Method Release

tensorflow/compiler/xrt/xrt_memory_manager.cc:231–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229}
230
231Status XRTMemoryManager::Release(int64 handle) {
232 int device_ordinal = GetDeviceFromHandle(handle);
233 DeviceContext* device_context = GetDeviceContext(device_ordinal,
234 /*create_if_missing=*/false);
235 if (device_context == nullptr || !device_context->Release(handle)) {
236 return errors::NotFound("XRT memory handle not found: ", handle);
237 }
238 return Status::OK();
239}
240
241Status XRTMemoryManager::CompactAllocations(xla::Backend* backend,
242 int device_ordinal) {

Callers

nothing calls this directly

Calls 2

GetDeviceFromHandleFunction · 0.85
NotFoundFunction · 0.85

Tested by

no test coverage detected