diff options
author | Derek Lamberti <derek.lamberti@arm.com> | 2019-04-09 10:25:02 +0100 |
---|---|---|
committer | Derek Lamberti <derek.lamberti@arm.com> | 2019-04-10 15:13:41 +0100 |
commit | f30f7d32b22020f80b21da7b008d8302cee9d395 (patch) | |
tree | 2e213da4704c46b40f20629223365d1ddbf8d8cd /src/armnn/LoadedNetwork.cpp | |
parent | 82fbe7c0b82f7adadd5120ac4b4f779d0da7c0d5 (diff) | |
download | armnn-f30f7d32b22020f80b21da7b008d8302cee9d395.tar.gz |
IVGCVSW-2946 RefElementwiseWorkload configures prior to first execute
+ Added PostAllocationConfigure() method to workload interface
+ Elementwise function now deduces types based on Functor
- Replaced RefComparisonWorkload with RefElementwiseWorkload specialization
+ Fixed up unit tests and minor formatting
Change-Id: I33d08797767bba01cf4efb2904920ce0f950a4fe
Signed-off-by: Derek Lamberti <derek.lamberti@arm.com>
Diffstat (limited to 'src/armnn/LoadedNetwork.cpp')
-rw-r--r-- | src/armnn/LoadedNetwork.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/armnn/LoadedNetwork.cpp b/src/armnn/LoadedNetwork.cpp index 9263f1a6e9..7f00dbee87 100644 --- a/src/armnn/LoadedNetwork.cpp +++ b/src/armnn/LoadedNetwork.cpp @@ -136,6 +136,12 @@ LoadedNetwork::LoadedNetwork(std::unique_ptr<OptimizedNetwork> net) // Set up memory. m_OptimizedNetwork->GetGraph().AllocateDynamicBuffers(); + + // Now that the intermediate tensor memory has been set-up, do any post allocation configuration for each workload. + for (auto& workload : m_WorkloadQueue) + { + workload->PostAllocationConfigure(); + } } TensorInfo LoadedNetwork::GetInputTensorInfo(LayerBindingId layerId) const |