diff options
Diffstat (limited to 'compute/ARMComputeEx/src/core/NEON/kernels/NEPReLUKernel.cpp')
-rw-r--r-- | compute/ARMComputeEx/src/core/NEON/kernels/NEPReLUKernel.cpp | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/compute/ARMComputeEx/src/core/NEON/kernels/NEPReLUKernel.cpp b/compute/ARMComputeEx/src/core/NEON/kernels/NEPReLUKernel.cpp index ad1bb9051..641641b5a 100644 --- a/compute/ARMComputeEx/src/core/NEON/kernels/NEPReLUKernel.cpp +++ b/compute/ARMComputeEx/src/core/NEON/kernels/NEPReLUKernel.cpp @@ -1,5 +1,20 @@ /* * Copyright (c) 2019 Samsung Electronics Co., Ltd. All Rights Reserved + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/* * Copyright (c) 2017-2019 ARM Limited. * * SPDX-License-Identifier: MIT @@ -22,6 +37,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ + #include "arm_compute/core/NEON/kernels/NEPReLUKernel.h" #include "arm_compute/core/ITensor.h" @@ -63,7 +79,8 @@ template <ConditionalOperation op> inline uint8_t elementwise_conditional_op_quantized_scalar(const float &a, const float &b, QuantizationInfo qinfo) { - return qinfo.quantize(elementwise_conditional_op_scalar<op>(a, b), RoundingPolicy::TO_NEAREST_UP); + return quantize_qasymm8(elementwise_conditional_op_scalar<op>(a, b), qinfo, + RoundingPolicy::TO_NEAREST_UP); } template <ConditionalOperation op, typename VectorType> |