diff options
author | Sadik Armagan <sadik.armagan@arm.com> | 2021-03-31 16:12:13 +0100 |
---|---|---|
committer | Sadik Armagan <sadik.armagan@arm.com> | 2021-04-02 10:38:51 +0000 |
commit | aede8ca25d3231d122b670353b754142b64e5d69 (patch) | |
tree | 87ba5bdae701a51b15fa44d550a55932e89966c9 /src/backends/reference | |
parent | 8c7a28ba48a0c7347fd6f940cbcf4b6dbeca932f (diff) | |
download | armnn-aede8ca25d3231d122b670353b754142b64e5d69.tar.gz |
IVGCVSW-5783 'Add AsyncExecution Capability'
* Added AsyncExecution to the BackendCapability enum class.
* Logged a warning if backends do not support AsyncExecution capability if AsyncNetwork is created.
Signed-off-by: Sadik Armagan <sadik.armagan@arm.com>
Change-Id: I49f8467297f4b6b8e414cb6a3638a7d3f1bb886a
Diffstat (limited to 'src/backends/reference')
-rw-r--r-- | src/backends/reference/RefBackend.cpp | 4 | ||||
-rw-r--r-- | src/backends/reference/RefBackend.hpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/backends/reference/RefBackend.cpp b/src/backends/reference/RefBackend.cpp index 53c55ab26a..85c6a2e1e4 100644 --- a/src/backends/reference/RefBackend.cpp +++ b/src/backends/reference/RefBackend.cpp @@ -71,8 +71,8 @@ IBackendInternal::ILayerSupportSharedPtr RefBackend::GetLayerSupport() const bool RefBackend::HasCapability(BackendCapability capabilityClass) const { - auto search = backendCapabilities.find(capabilityClass); - if (search != backendCapabilities.end()) + auto search = cpuRefCapabilities.find(capabilityClass); + if (search != cpuRefCapabilities.end()) { return true; } diff --git a/src/backends/reference/RefBackend.hpp b/src/backends/reference/RefBackend.hpp index c92936ca0c..3143173061 100644 --- a/src/backends/reference/RefBackend.hpp +++ b/src/backends/reference/RefBackend.hpp @@ -9,7 +9,7 @@ namespace armnn { -const std::set<armnn::BackendCapability> backendCapabilities { +const std::set<armnn::BackendCapability> cpuRefCapabilities { armnn::BackendCapability::NonConstWeights, }; |