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

Method ~Buffer

tensorflow/core/framework/tensor.cc:480–487  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

478
479template <typename T>
480Buffer<T>::~Buffer() {
481 if (data()) {
482 if (LogMemory::IsEnabled()) {
483 RecordDeallocation();
484 }
485 TypedAllocator::Deallocate<T>(alloc_, static_cast<T*>(data()), elem_);
486 }
487}
488
489// Allocates a T[n] buffer. Fills in the buffer with repeated values
490// in "in". If "in" has less values than "n", fills the rest of T[n]

Callers

nothing calls this directly

Calls 2

IsEnabledFunction · 0.85
dataFunction · 0.50

Tested by

no test coverage detected