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

Method DeallocateRaw

tensorflow/core/framework/ev_allocator.h:688–697  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

686 }
687
688 void DeallocateRaw(void* ptr) override {
689 if (ev_allocator_collect_stats) {
690 const std::size_t alloc_size = impl_.AllocatedSize(ptr);
691
692 mutex_lock l(mu_);
693 stats_.bytes_in_use -= alloc_size;
694 }
695
696 impl_.Deallocate(ptr);
697 }
698
699 absl::optional<AllocatorStats> GetStats() override {
700 mutex_lock l(mu_);

Callers

nothing calls this directly

Calls 2

AllocatedSizeMethod · 0.45
DeallocateMethod · 0.45

Tested by

no test coverage detected