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

Method GetSizes

tensorflow/core/framework/tracking_allocator.cc:245–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243void TrackingAllocator::ClearStats() { allocator_->ClearStats(); }
244
245std::tuple<size_t, size_t, size_t> TrackingAllocator::GetSizes() {
246 size_t high_watermark;
247 size_t total_bytes;
248 size_t still_live_bytes;
249 {
250 mutex_lock lock(mu_);
251 high_watermark = high_watermark_;
252 total_bytes = total_bytes_;
253 still_live_bytes = allocated_;
254 }
255 return std::make_tuple(total_bytes, high_watermark, still_live_bytes);
256}
257
258gtl::InlinedVector<AllocRecord, 4> TrackingAllocator::GetRecordsAndUnRef() {
259 bool should_delete;

Callers 1

TESTFunction · 0.45

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.36