aboutsummaryrefslogtreecommitdiff
path: root/src/core/ITensorPack.cpp
diff options
context:
space:
mode:
authorGeorgios Pinitas <georgios.pinitas@arm.com>2021-04-22 21:13:21 +0100
committerGeorgios Pinitas <georgios.pinitas@arm.com>2021-05-18 14:48:39 +0000
commit856f66e6c61b77d03f754cd0fa8439891f0e4aca (patch)
treef9379cd0853ac407109e54c3d53b385ceee066c2 /src/core/ITensorPack.cpp
parent37f4b2ef1ea225a90ccb563fcb2c08f8fb0fb5d5 (diff)
downloadComputeLibrary-856f66e6c61b77d03f754cd0fa8439891f0e4aca.tar.gz
Port CLGEMM to memory injecting interface
Moves the following kernels: - CLGEMMMatrixMultiplyKernel - CLGEMMMatrixMultiplyNativeKernel - CLGEMMMatrixMultipluReshapedKernel - CLGEMMMatrixMultiplyReshapedOnlyRHSKernel Moves the following functions - CLGEMM Introduces facilities to easy handling of auxiliary temporary buffers under then new run interface. Such are: - CLAuxTensorHandler: That allows wrapping of workspace buffers memory to CLBuffer objects - Ability to inject TensorInfo to allocator without transferring ownership. This reduce the copy overhead if needed. Resolves: COMPMID-4188 Signed-off-by: Georgios Pinitas <georgios.pinitas@arm.com> Change-Id: I7055435d831b05b749b26302082e4ac45f26dfb0 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5498 Tested-by: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Michalis Spyrou <michalis.spyrou@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'src/core/ITensorPack.cpp')
-rw-r--r--src/core/ITensorPack.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/core/ITensorPack.cpp b/src/core/ITensorPack.cpp
index 546f669985..9eaeece271 100644
--- a/src/core/ITensorPack.cpp
+++ b/src/core/ITensorPack.cpp
@@ -27,14 +27,23 @@
namespace arm_compute
{
+ITensorPack::ITensorPack(std::initializer_list<PackElement> l)
+ : _pack()
+{
+ for(auto &e : l)
+ {
+ _pack[e.id] = e;
+ }
+}
+
void ITensorPack::add_tensor(int id, ITensor *tensor)
{
- _pack[id] = PackElement(tensor);
+ _pack[id] = PackElement(id, tensor);
}
void ITensorPack::add_tensor(int id, const ITensor *tensor)
{
- _pack[id] = PackElement(tensor);
+ _pack[id] = PackElement(id, tensor);
}
void ITensorPack::add_const_tensor(int id, const ITensor *tensor)