aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/core/ITensorPack.h
diff options
context:
space:
mode:
authorSang-Hoon Park <sang-hoon.park@arm.com>2021-01-27 13:14:56 +0000
committerSang-Hoon Park <sang-hoon.park@arm.com>2021-03-08 16:36:32 +0000
commit201e0fee596dafcf9c869a550fae29779aad2394 (patch)
treea0301279bd02ee65902b62e57ef1f1930e52d5b7 /arm_compute/core/ITensorPack.h
parenteda87d40532304482acade655580930329a0bb8b (diff)
downloadComputeLibrary-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 'arm_compute/core/ITensorPack.h')
-rw-r--r--arm_compute/core/ITensorPack.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/arm_compute/core/ITensorPack.h b/arm_compute/core/ITensorPack.h
index c06e1d9a73..8aea880bb6 100644
--- a/arm_compute/core/ITensorPack.h
+++ b/arm_compute/core/ITensorPack.h
@@ -69,6 +69,13 @@ public:
* @param[in] tensor Tensor to add
*/
void add_tensor(int id, const ITensor *tensor);
+
+ /** Add const tensor to the pack
+ *
+ * @param[in] id ID/type of the tensor to add
+ * @param[in] tensor Tensor to add
+ */
+ void add_const_tensor(int id, const ITensor *tensor);
/** Get tensor of a given id from the pac
*
* @param[in] id ID of tensor to extract