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

Method TrackingAllocator

tensorflow/core/framework/tracking_allocator.cc:23–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21namespace tensorflow {
22
23TrackingAllocator::TrackingAllocator(Allocator* allocator, bool track_sizes)
24 : allocator_(allocator),
25 ref_(1),
26 allocated_(0),
27 high_watermark_(0),
28 total_bytes_(0),
29 track_sizes_locally_(track_sizes && !allocator_->TracksAllocationSizes()),
30 next_allocation_id_(0) {}
31
32void* TrackingAllocator::AllocateRaw(
33 size_t alignment, size_t num_bytes,

Callers

nothing calls this directly

Calls 1

TracksAllocationSizesMethod · 0.45

Tested by

no test coverage detected