MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / release_if_unused

Method release_if_unused

src/graph/backends/NEON/NETensorHandle.cpp:68–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68void NETensorHandle::release_if_unused()
69{
70 // TODO (geopin01): Release tensor only if all sub-tensors are marked as not used
71 if (!_tensor.is_used())
72 {
73 _tensor.allocator()->free();
74 }
75}
76
77const arm_compute::ITensor &NETensorHandle::tensor() const
78{

Callers

nothing calls this directly

Calls 3

is_usedMethod · 0.80
freeMethod · 0.45
allocatorMethod · 0.45

Tested by

no test coverage detected