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

Method AllocatedSize

tensorflow/core/framework/ev_allocator.h:580–586  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

578 }
579
580 size_t AllocatedSize(const void* ptr) const {
581 auto bin = page_map_->GetBin(ptr);
582 if (bin != nullptr) {
583 return bin->BinSize();
584 }
585 return 0;
586 }
587
588 private:
589 ThreadLocalCache<ChunkType>* GetThreadLocalCache() {

Callers 4

AllocateRawMethod · 0.45
BatchAllocateRawMethod · 0.45
DeallocateRawMethod · 0.45
AllocatedSizeSlowMethod · 0.45

Calls 2

BinSizeMethod · 0.80
GetBinMethod · 0.45

Tested by

no test coverage detected