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

Method Deallocate

tensorflow/core/framework/ev_allocator.h:525–533  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

523 }
524
525 void Deallocate(size_t num_bytes, void *ptr) {
526 auto it = t_bins_.find(num_bytes);
527 if (it != t_bins_.end()) {
528 return it->second->Deallocate(ptr);
529 }
530 auto b = new ThreadLocalBin<ChunkType>(num_bytes, page_map_, arena_);
531 t_bins_.emplace(num_bytes, b);
532 b->Deallocate(ptr);
533 }
534
535 private:
536 PageMap<ChunkType> * page_map_ = nullptr; // not owned

Callers

nothing calls this directly

Calls 4

findMethod · 0.45
endMethod · 0.45
DeallocateMethod · 0.45
emplaceMethod · 0.45

Tested by

no test coverage detected