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

Method ~XRTBufferAllocation

tensorflow/compiler/xrt/xrt_state.cc:133–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133XRTBufferAllocation::~XRTBufferAllocation() {
134 if (VLOG_IS_ON(2)) {
135 GetAllocStats()->ReportFree(device_ordinal_, allocation_.size());
136 }
137 // Deallocate explicitly allows allocation_ to be null.
138 TF_CHECK_OK(allocator_->Deallocate(device_ordinal_, allocation_));
139 VLOG(2) << "Freed buffer at " << allocation_.opaque() << " ("
140 << allocation_.size() << " bytes)";
141}
142
143const se::DeviceMemoryBase& XRTBufferAllocation::allocation() {
144 return allocation_;

Callers

nothing calls this directly

Calls 5

GetAllocStatsFunction · 0.85
ReportFreeMethod · 0.80
opaqueMethod · 0.80
sizeMethod · 0.45
DeallocateMethod · 0.45

Tested by

no test coverage detected