diff options
author | Georgios Pinitas <georgios.pinitas@arm.com> | 2021-07-22 01:25:57 +0100 |
---|---|---|
committer | Michele Di Giorgio <michele.digiorgio@arm.com> | 2021-07-22 11:02:07 +0000 |
commit | 1fa27ad2f3047a1e466f5757d64938ee8db90957 (patch) | |
tree | c90750a49f165d88148c345cdf5571dad1b512dc /src/runtime/cpu/operators | |
parent | f113f3715ef590a336f1f022caa58b92ad7dd430 (diff) | |
download | ComputeLibrary-1fa27ad2f3047a1e466f5757d64938ee8db90957.tar.gz |
Inject temporary tensors to pack in they don't exist in CpuSoftmax
Signed-off-by: Georgios Pinitas <georgios.pinitas@arm.com>
Change-Id: Ief95ad8c97271f9042534e149fbccc9199318c2a
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5975
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'src/runtime/cpu/operators')
-rw-r--r-- | src/runtime/cpu/operators/CpuSoftmax.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/runtime/cpu/operators/CpuSoftmax.cpp b/src/runtime/cpu/operators/CpuSoftmax.cpp index e17925ee50..abbc539b19 100644 --- a/src/runtime/cpu/operators/CpuSoftmax.cpp +++ b/src/runtime/cpu/operators/CpuSoftmax.cpp @@ -160,11 +160,11 @@ void CpuSoftmaxGeneric<IS_LOG>::run(ITensorPack &tensors) auto src = tensors.get_const_tensor(TensorType::ACL_SRC); auto dst = tensors.get_tensor(TensorType::ACL_DST); - CpuAuxTensorHandler tmp(offset_int_vec(InternalTensorIdx::TMP), _tmp, tensors, false); - CpuAuxTensorHandler max(offset_int_vec(InternalTensorIdx::MAX), _max, tensors, false); + CpuAuxTensorHandler tmp(offset_int_vec(InternalTensorIdx::TMP), _tmp, tensors, true); + CpuAuxTensorHandler max(offset_int_vec(InternalTensorIdx::MAX), _max, tensors, true); - CpuAuxTensorHandler input_permuted(offset_int_vec(InternalTensorIdx::PERMUTED_SRC), _input_permuted, tensors, false); - CpuAuxTensorHandler output_permuted(offset_int_vec(InternalTensorIdx::PERMUTED_DST), _output_permuted, tensors, false); + CpuAuxTensorHandler input_permuted(offset_int_vec(InternalTensorIdx::PERMUTED_SRC), _input_permuted, tensors, true); + CpuAuxTensorHandler output_permuted(offset_int_vec(InternalTensorIdx::PERMUTED_DST), _output_permuted, tensors, true); ITensorPack max_pack; ITensorPack softmax_pack; |