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

Method CompactAllocations

tensorflow/compiler/xrt/xrt_memory_manager.cc:241–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239}
240
241Status XRTMemoryManager::CompactAllocations(xla::Backend* backend,
242 int device_ordinal) {
243 DeviceContext* device_context = GetDeviceContext(device_ordinal,
244 /*create_if_missing=*/false);
245 return device_context != nullptr
246 ? device_context->CompactAllocations(this, backend)
247 : Status::OK();
248}
249
250void XRTMemoryManager::ReleaseAllAllocations() {
251 mutex_lock lock(lock_);

Callers 2

TryFreeMemoryStepMethod · 0.45
ComputeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected