diff options
author | Sang-Hoon Park <sang-hoon.park@arm.com> | 2021-01-27 13:14:56 +0000 |
---|---|---|
committer | Sang-Hoon Park <sang-hoon.park@arm.com> | 2021-03-08 16:36:32 +0000 |
commit | 201e0fee596dafcf9c869a550fae29779aad2394 (patch) | |
tree | a0301279bd02ee65902b62e57ef1f1930e52d5b7 /src/core/ITensorPack.cpp | |
parent | eda87d40532304482acade655580930329a0bb8b (diff) | |
download | ComputeLibrary-201e0fee596dafcf9c869a550fae29779aad2394.tar.gz |
Make Softmax kernels on OpenCL stateless
* ClSoftmaxKernel and ClSoftmax are created.
* ClSoftmaxKernel is now state-less and ClSoftmax handles
the internal tensors required for computation.
* add_const_tensor() is added to TensorPack not only
to have symmetric interface but also to benefit from
implicit conversion.
Implements: COMPMID-3998
Change-Id: I4f823121777be24260fd12b2cd71a6ff718c4eed
Signed-off-by: Sang-Hoon Park <sang-hoon.park@arm.com>
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5087
Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'src/core/ITensorPack.cpp')
-rw-r--r-- | src/core/ITensorPack.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/ITensorPack.cpp b/src/core/ITensorPack.cpp index 7a54a8bc6b..546f669985 100644 --- a/src/core/ITensorPack.cpp +++ b/src/core/ITensorPack.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020 Arm Limited. + * Copyright (c) 2020-2021 Arm Limited. * * SPDX-License-Identifier: MIT * @@ -37,6 +37,11 @@ void ITensorPack::add_tensor(int id, const ITensor *tensor) _pack[id] = PackElement(tensor); } +void ITensorPack::add_const_tensor(int id, const ITensor *tensor) +{ + add_tensor(id, tensor); +} + const ITensor *ITensorPack::get_const_tensor(int id) const { auto it = _pack.find(id); |