diff options
author | Jerry Ge <jerry.ge@arm.com> | 2022-11-16 10:41:55 -0800 |
---|---|---|
committer | Eric Kunze <eric.kunze@arm.com> | 2022-12-09 15:53:29 +0000 |
commit | a68274931b24625f5576ca9ee9d4268cd80fc7c8 (patch) | |
tree | 4f5b18eb703a9a5ab9462890df04b0117ce1f491 /reference_model/src/ops/activation_funcs.h | |
parent | 4160186b6ef5f0f9e34390b0a3bb1359e9266902 (diff) | |
download | reference_model-a68274931b24625f5576ca9ee9d4268cd80fc7c8.tar.gz |
Fix reference model memory leaks for the following ops
- OpClamp
- OpArithmeticRightShift
- OpMul
- OpTable
- OpTranspose
Signed-off-by: Jerry Ge <jerry.ge@arm.com>
Change-Id: Icb84a8a17c298b471a635310454775977a9133cb
Diffstat (limited to 'reference_model/src/ops/activation_funcs.h')
-rw-r--r-- | reference_model/src/ops/activation_funcs.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/reference_model/src/ops/activation_funcs.h b/reference_model/src/ops/activation_funcs.h index 4853971..9a697cd 100644 --- a/reference_model/src/ops/activation_funcs.h +++ b/reference_model/src/ops/activation_funcs.h @@ -1,5 +1,5 @@ -// Copyright (c) 2020, ARM Limited. +// Copyright (c) 2020-2022, ARM Limited. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -34,6 +34,7 @@ public: INIT_ATTRIBUTE(Clamp); register_fcn(); } + virtual ~OpClamp(); static constexpr int32_t QMin = GetQMin<Dtype>::value; static constexpr int32_t QMax = GetQMax<Dtype>::value; using InEigenType = typename GetEigenType<Dtype>::type; |