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

Method TrackAllocate

tensorflow/core/common_runtime/memory_planner.cc:155–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153}
154
155void MemoryPlanner::TrackAllocate(size_t alignment, size_t num_bytes) {
156 if (!is_stats_.load()) {
157 return;
158 }
159 for (auto lifetime_policy : lifetime_stats_polices_) {
160 lifetime_policy->TrackAllocate(alignment, num_bytes);
161 }
162}
163
164void MemoryPlanner::TrackDeallocate(Header* header) {
165 if (!is_stats_.load()) {

Callers 3

AllocateRawMethod · 0.45
BigAllocateMethod · 0.45
BigAllocateStatisticMethod · 0.45

Calls 2

IndexFunction · 0.70
loadMethod · 0.45

Tested by

no test coverage detected