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

Method release

src/runtime/IWeightsManager.cpp:154–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154void IWeightsManager::release(const ITensor *weights)
155{
156 if (weights == nullptr || !are_weights_managed(weights))
157 {
158 return;
159 }
160
161 _managed_counter[weights].counter--;
162 if (_managed_counter[weights].counter == 0 && _managed_counter[weights].is_unused)
163 {
164 weights->mark_as_unused();
165 }
166}
167
168void IWeightsManager::pre_mark_as_unused(const ITensor *weights)
169{

Callers 1

runMethod · 0.45

Calls 1

mark_as_unusedMethod · 0.80

Tested by

no test coverage detected