IVGCVSW-5819 5820 5821 Add MemorySourceFlags to TensorHandleFactoryRegistry::GetFactory
* Modify Layer::CreateTensorHandles to include MemorySource
* Modify INetworkProperties to add MemorySource
* Disable Neon/Cl fallback tests until full import implementation complete
Change-Id: Ia4fff6ea3d4bf6afca33aae358125ccaec7f9a38
Signed-off-by: Francis Murtagh <francis.murtagh@arm.com>
diff --git a/include/armnn/Types.hpp b/include/armnn/Types.hpp
index 2fd40b8..bc41003 100644
--- a/include/armnn/Types.hpp
+++ b/include/armnn/Types.hpp
@@ -182,6 +182,15 @@
InferAndValidate = 1
};
+/// Define the Memory Source to reduce copies
+enum class MemorySource : uint32_t
+{
+ Undefined = 0,
+ Malloc = 1,
+ DmaBuf = 2,
+ DmaBufProtected = 4
+};
+
/// Each backend should implement an IBackend.
class IBackend
{