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

Function TF_DeleteBuffer

tensorflow/c/c_api.cc:145–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145void TF_DeleteBuffer(TF_Buffer* buffer) {
146 if (buffer == nullptr) return;
147 if (buffer->data_deallocator != nullptr) {
148 (*buffer->data_deallocator)(const_cast<void*>(buffer->data),
149 buffer->length);
150 }
151 delete buffer;
152}
153
154TF_Buffer TF_GetBuffer(TF_Buffer* buffer) { return *buffer; }
155

Calls

no outgoing calls

Tested by 15

GraphDebugStringMethod · 0.68
GetAttrMethod · 0.68
TEST_FFunction · 0.68
TESTFunction · 0.68
GetGraphDefFunction · 0.68
GetNodeDefFunction · 0.68
GetFunctionDefFunction · 0.68
GetAttrValueFunction · 0.68
TESTFunction · 0.68
TEST_FFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68