diff options
author | Giorgio Arena <giorgio.arena@arm.com> | 2021-08-20 15:24:03 +0100 |
---|---|---|
committer | Giorgio Arena <giorgio.arena@arm.com> | 2021-08-24 11:46:13 +0000 |
commit | 9c67d3883adaa8a65e3567579cf99937deaab21a (patch) | |
tree | e3b11c5918b4121e8e7d5ad728847ce74a8ed77f /utils/GraphUtils.h | |
parent | 87a74effff65f6fa1b0e565818e02c3b414ae1cf (diff) | |
download | ComputeLibrary-9c67d3883adaa8a65e3567579cf99937deaab21a.tar.gz |
Remove map/unmap overhead for input/output accessor when using DummyAccessor
Don't map/unmap when the tensor data is not accessed in the input or output accessor.
This is so to avoid measuring CPU overhead when benchmarking on the GPU backend.
Resolve COMPMID-4712
Change-Id: I5baba1b93e7a51fe13525bcce6c0cfdecb14493e
Signed-off-by: Giorgio Arena <giorgio.arena@arm.com>
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/6140
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'utils/GraphUtils.h')
-rw-r--r-- | utils/GraphUtils.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/GraphUtils.h b/utils/GraphUtils.h index d2b05f27c6..80055acc0f 100644 --- a/utils/GraphUtils.h +++ b/utils/GraphUtils.h @@ -135,6 +135,7 @@ public: DummyAccessor(DummyAccessor &&) = default; // Inherited methods overriden: + bool access_tensor_data() override; bool access_tensor(ITensor &tensor) override; private: |