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

Method Deallocate

tensorflow/core/framework/ev_allocator.h:461–467  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

459 }
460
461 void Deallocate(void *ptr) {
462 list_.push_front(ptr);
463
464 if (unlikely(list_.size() > kThreadLocalBinMaxPtrNum)) {
465 FlushBackToArena(kThreadLocalBinExchangeMaxPtrNum);
466 }
467 }
468
469 private:
470 void FlushBackToArena(int num) {

Callers 3

DeallocateMethod · 0.45
DeallocateMethod · 0.45
DeallocateRawMethod · 0.45

Calls 2

push_frontMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected