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

Method release

tensorflow/compiler/xla/service/shaped_buffer.cc:149–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147ScopedShapedBuffer::~ScopedShapedBuffer() { Deallocate(); }
148
149ShapedBuffer ScopedShapedBuffer::release() {
150 ShapedBuffer shaped_buffer(static_cast<ShapedBuffer&&>(*this));
151 buffers_ = ShapeTree<se::DeviceMemoryBase>();
152 return shaped_buffer;
153}
154
155void ScopedShapedBuffer::Deallocate() {
156 // allocator_ will be null if we were moved-from.

Callers 15

PyLocalBufferGetBufferFunction · 0.45
LiteralToPythonFunction · 0.45
CastToArrayFunction · 0.45
PyBfloat16_NegativeFunction · 0.45
PyBfloat16_AddFunction · 0.45
PyBfloat16_SubtractFunction · 0.45
PyBfloat16_MultiplyFunction · 0.45
PyBfloat16_TrueDivideFunction · 0.45
bfloat16.ccFile · 0.45
CreateBFCAllocatorFunction · 0.45
StreamWriterFnMethod · 0.45

Calls

no outgoing calls

Tested by 3

BM_TakeSubTreeFunction · 0.36
TEST_FFunction · 0.36
RunAndCheckMethod · 0.36