From 6940dd720ebb6b3d1df8ca203ab696daefe58189 Mon Sep 17 00:00:00 2001 From: Jim Flynn Date: Fri, 20 Mar 2020 12:25:56 +0000 Subject: renamed Documentation folder 20.02 and added .nojekyll file Signed-off-by: Jim Flynn --- 20.02/_tensor_copy_utils_8cpp_source.xhtml | 122 +++++++++++++++++++++++++++++ 1 file changed, 122 insertions(+) create mode 100644 20.02/_tensor_copy_utils_8cpp_source.xhtml (limited to '20.02/_tensor_copy_utils_8cpp_source.xhtml') diff --git a/20.02/_tensor_copy_utils_8cpp_source.xhtml b/20.02/_tensor_copy_utils_8cpp_source.xhtml new file mode 100644 index 0000000000..0d821276e6 --- /dev/null +++ b/20.02/_tensor_copy_utils_8cpp_source.xhtml @@ -0,0 +1,122 @@ + + + + + + + + + + + + + +ArmNN: src/backends/backendsCommon/test/TensorCopyUtils.cpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
TensorCopyUtils.cpp
+
+
+Go to the documentation of this file.
1 //
2 // Copyright © 2017 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #include "TensorCopyUtils.hpp"
7 #include <Half.hpp>
8 
9 void CopyDataToITensorHandle(armnn::ITensorHandle* tensorHandle, const void* memory)
10 {
11  tensorHandle->CopyInFrom(memory);
12 }
13 
14 void CopyDataFromITensorHandle(void* memory, const armnn::ITensorHandle* tensorHandle)
15 {
16  tensorHandle->CopyOutTo(memory);
17 }
18 
19 void AllocateAndCopyDataToITensorHandle(armnn::ITensorHandle* tensorHandle, const void* memory)
20 {
21  tensorHandle->Allocate();
22  CopyDataToITensorHandle(tensorHandle, memory);
23 }
+
virtual void Allocate()=0
Indicate to the memory manager that this resource is no longer active.
+ +
void AllocateAndCopyDataToITensorHandle(armnn::ITensorHandle *tensorHandle, const void *memory)
+
void CopyDataFromITensorHandle(void *memory, const armnn::ITensorHandle *tensorHandle)
+
virtual void CopyOutTo(void *memory) const =0
Testing support to be able to verify and set tensor data content.
+ +
virtual void CopyInFrom(const void *memory)=0
+
void CopyDataToITensorHandle(armnn::ITensorHandle *tensorHandle, const void *memory)
+
+
+ + + + -- cgit v1.2.1