diff options
Diffstat (limited to 'src/runtime/NEON/functions/NEGEMM.cpp')
-rw-r--r-- | src/runtime/NEON/functions/NEGEMM.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/runtime/NEON/functions/NEGEMM.cpp b/src/runtime/NEON/functions/NEGEMM.cpp index 4bf330fa1e..b470afe1c6 100644 --- a/src/runtime/NEON/functions/NEGEMM.cpp +++ b/src/runtime/NEON/functions/NEGEMM.cpp @@ -112,19 +112,7 @@ void NEGEMM::prepare() } // Release temporary tensors that are only used in prepare stage - for(auto &ws : _impl->workspace) - { - const int slot = ws.slot; - for(auto &m : _impl->aux_mem_req) - { - if(m.slot == slot && m.lifetime == MemoryLifetime::Prepare) - { - auto tensor = ws.tensor.get(); - tensor->allocator()->free(); - break; - } - } - } + release_temporaries<Tensor>(_impl->aux_mem_req, _impl->workspace); _impl->is_prepared = true; } } |