aboutsummaryrefslogtreecommitdiff
path: root/src/armnn/Runtime.cpp
diff options
context:
space:
mode:
authorKevin May <kevin.may@arm.com>2022-03-02 12:11:31 +0000
committerKevin May <kevin.may@arm.com>2022-03-02 12:11:31 +0000
commit998a20832fd511de75c2cd935b7a0e851e91156d (patch)
tree0839bcc53555b06887708cb56429735b8315472d /src/armnn/Runtime.cpp
parent138a88cf568fbc420a310344903f7eb9dec8e1e3 (diff)
downloadarmnn-998a20832fd511de75c2cd935b7a0e851e91156d.tar.gz
Typo in Guide
* Only file changed is shim/BuildGuideShimSupportLibrary.md * All other files are merge squash from Arm NN 22.02 Signed-off-by: Kevin May <kevin.may@arm.com> Change-Id: Id82a6e9ac8abf74c1073c08744712f50e98dece0
Diffstat (limited to 'src/armnn/Runtime.cpp')
-rw-r--r--src/armnn/Runtime.cpp15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/armnn/Runtime.cpp b/src/armnn/Runtime.cpp
index 1abe0f394b..a91368140c 100644
--- a/src/armnn/Runtime.cpp
+++ b/src/armnn/Runtime.cpp
@@ -630,15 +630,18 @@ Status RuntimeImpl::EnqueueWorkload(NetworkId networkId,
auto status = loadedNetwork->EnqueueWorkload(inputTensors, outputTensors,
preImportedInputIds, preImportedOutputIds);
- ARMNN_LOG(info) << "Execution time: " << std::setprecision(2)
- << std::fixed << armnn::GetTimeDuration(startTime).count() << " ms.";
- // Call After EnqueueWorkload events
- for (auto&& context : m_BackendContexts)
+ // Check if we imported, if not there's no need to call the After EnqueueWorkload events
+ if (!preImportedInputIds.empty() || !preImportedOutputIds.empty())
{
- context.second->AfterEnqueueWorkload(networkId);
+ // Call After EnqueueWorkload events
+ for (auto&& context : m_BackendContexts)
+ {
+ context.second->AfterEnqueueWorkload(networkId);
+ }
}
-
+ ARMNN_LOG(info) << "Execution time: " << std::setprecision(2)
+ << std::fixed << armnn::GetTimeDuration(startTime).count() << " ms.";
return status;
}