MCPcopy Create free account
hub / github.com/ARM-software/armnn / CopyOutTo

Method CopyOutTo

src/backends/reference/RefTensorHandle.cpp:102–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102void RefTensorHandle::CopyOutTo(void* dest) const
103{
104 const void* src = GetPointer();
105 if (src == nullptr)
106 {
107 throw NullPointerException("TensorHandle::CopyOutTo called with a null src pointer");
108 }
109 if (dest == nullptr)
110 {
111 throw NullPointerException("TensorHandle::CopyOutTo called with a null dest pointer");
112 }
113 memcpy(dest, src, GetTensorInfo().GetNumBytes());
114}
115
116void RefTensorHandle::CopyInFrom(const void* src)
117{

Callers

nothing calls this directly

Calls 3

GetTensorInfoFunction · 0.85
GetNumBytesMethod · 0.45

Tested by

no test coverage detected