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

Function Deallocator

tensorflow/c/c_api_test.cc:122–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122void Deallocator(void* data, size_t, void* arg) {
123 tensorflow::cpu_allocator()->DeallocateRaw(data);
124 *reinterpret_cast<bool*>(arg) = true;
125}
126
127TEST(CAPI, Tensor) {
128 const int num_bytes = 6 * sizeof(float);

Callers

nothing calls this directly

Calls 2

cpu_allocatorFunction · 0.85
DeallocateRawMethod · 0.45

Tested by

no test coverage detected