diff options
author | Anitha Raj <anitha.raj@arm.com> | 2024-01-23 15:29:12 +0000 |
---|---|---|
committer | Jakub Sujak <jakub.sujak@arm.com> | 2024-01-23 17:36:50 +0000 |
commit | bde6e785e7b04a70dc8c6e1f5942f9b62524c23c (patch) | |
tree | 90a72a1b8b0187604466a8649c71795bde298f38 | |
parent | e8e016e126e38c3114734220768a743a1228d62a (diff) | |
download | ComputeLibrary-bde6e785e7b04a70dc8c6e1f5942f9b62524c23c.tar.gz |
Fix for Logically dead code detected in Coverity checks
Resolves: COMPMID-6746
Signed-off-by: Anitha Raj <anitha.raj@arm.com>
Change-Id: I96c158820469af3e54dca0c5909c888106eb1940
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/11005
Reviewed-by: Gunes Bayir <gunes.bayir@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Benchmark: Arm Jenkins <bsgcomp@arm.com>
-rw-r--r-- | src/cpu/kernels/CpuSoftmaxKernel.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/cpu/kernels/CpuSoftmaxKernel.cpp b/src/cpu/kernels/CpuSoftmaxKernel.cpp index 486f55e2c1..68bc397acf 100644 --- a/src/cpu/kernels/CpuSoftmaxKernel.cpp +++ b/src/cpu/kernels/CpuSoftmaxKernel.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2023 Arm Limited. + * Copyright (c) 2017-2024 Arm Limited. * * SPDX-License-Identifier: MIT * @@ -141,8 +141,7 @@ void CpuSoftmaxKernel::configure(const ITensorInfo *src, ITensorInfo *dst, float // Tmp auto initialization if not yet initialized and src is quantized if (is_quantized_asymmetric) { - const DataType tmp_data_type = is_quantized_asymmetric ? DataType::F32 : src->data_type(); - auto_init_if_empty(*tmp, TensorInfo(*src).set_data_type(tmp_data_type).reset_padding()); + auto_init_if_empty(*tmp, TensorInfo(*src).set_data_type(DataType::F32).reset_padding()); } const auto *uk = CpuSoftmaxKernel::get_implementation( |