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

Method Deallocate

tensorflow/stream_executor/stream_executor_pimpl.cc:209–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207}
208
209void StreamExecutor::Deallocate(DeviceMemoryBase *mem) {
210 VLOG(1) << "Called StreamExecutor::Deallocate(mem=" << mem->opaque()
211 << ") mem->size()=" << mem->size() << StackTraceIfVLOG10();
212
213 if (mem->opaque() != nullptr) {
214 EraseAllocRecord(mem->opaque());
215 }
216 implementation_->Deallocate(mem);
217 mem->Reset(nullptr, 0);
218}
219
220void StreamExecutor::GetMemAllocs(std::map<void *, AllocRecord> *records_out) {
221 absl::ReaderMutexLock lock(&mu_);

Callers

nothing calls this directly

Calls 6

StackTraceIfVLOG10Function · 0.85
opaqueMethod · 0.80
TF_ASSIGN_OR_RETURNFunction · 0.50
sizeMethod · 0.45
ResetMethod · 0.45
is_nullMethod · 0.45

Tested by

no test coverage detected