diff options
author | Finn Williams <finn.williams@arm.com> | 2022-02-15 20:47:34 +0000 |
---|---|---|
committer | Finn Williams <finn.williams@arm.com> | 2022-02-16 19:30:43 +0000 |
commit | 73c547da9b403ff19adb94032db51d8d0f1ee767 (patch) | |
tree | b652d41a2ed99e20b5c4478a646ae0764cf22506 /src/backends/reference/workloads/RefDepthwiseConvolution2dWorkload.hpp | |
parent | bb6c6490b43036400e3c2ff90d3beafe074ab0b1 (diff) | |
download | armnn-73c547da9b403ff19adb94032db51d8d0f1ee767.tar.gz |
Refactor Forced Import
* Find and replace all workloads associated with imported IO
* Only attempt tensorhandle replacement if supported by all workloads
* Add new RefBaseWorkload to enable forced input for ref backend
* Store imported tensorhandles in preImportedTensorhandles instead of outputHandles
* Create pre-imported tensorhandles at network load-time
* Front load import workload validation to load network time
* Only call ReplaceTensorHandle when needed
Change-Id: I3816a71b7f57ae90388bb16462a75d4ef3544fa7
Signed-off-by: Finn Williams <finn.williams@arm.com>
Diffstat (limited to 'src/backends/reference/workloads/RefDepthwiseConvolution2dWorkload.hpp')
-rw-r--r-- | src/backends/reference/workloads/RefDepthwiseConvolution2dWorkload.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backends/reference/workloads/RefDepthwiseConvolution2dWorkload.hpp b/src/backends/reference/workloads/RefDepthwiseConvolution2dWorkload.hpp index ae93d03656..5d4b483fa7 100644 --- a/src/backends/reference/workloads/RefDepthwiseConvolution2dWorkload.hpp +++ b/src/backends/reference/workloads/RefDepthwiseConvolution2dWorkload.hpp @@ -2,7 +2,7 @@ // Copyright © 2017 Arm Ltd. All rights reserved. // SPDX-License-Identifier: MIT // -#include <armnn/backends/Workload.hpp> +#include "RefBaseWorkload.hpp" #include <armnn/backends/WorkloadData.hpp> #include "Decoders.hpp" #include "Encoders.hpp" @@ -12,7 +12,7 @@ namespace armnn { -class RefDepthwiseConvolution2dWorkload : public BaseWorkload<DepthwiseConvolution2dQueueDescriptor> { +class RefDepthwiseConvolution2dWorkload : public RefBaseWorkload<DepthwiseConvolution2dQueueDescriptor> { public: explicit RefDepthwiseConvolution2dWorkload(const DepthwiseConvolution2dQueueDescriptor &descriptor, const WorkloadInfo &info); |