aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/NEON/functions/NEGEMMConvolutionLayer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/NEON/functions/NEGEMMConvolutionLayer.cpp')
-rw-r--r--src/runtime/NEON/functions/NEGEMMConvolutionLayer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/NEON/functions/NEGEMMConvolutionLayer.cpp b/src/runtime/NEON/functions/NEGEMMConvolutionLayer.cpp
index 1ffeaf227d..5a35463365 100644
--- a/src/runtime/NEON/functions/NEGEMMConvolutionLayer.cpp
+++ b/src/runtime/NEON/functions/NEGEMMConvolutionLayer.cpp
@@ -561,7 +561,7 @@ void NEGEMMConvolutionLayer::run()
{
_asm_glue.run();
// Release weights in case buffer is pretransposed
- if(_B_pretransposed.buffer() != nullptr && _weights_reshaped.is_used())
+ if(!_weights_reshaped.is_used())
{
_weights_reshaped.allocator()->free();
}