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

Method CopyInFrom

src/backends/reference/RefTensorHandle.cpp:116–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116void RefTensorHandle::CopyInFrom(const void* src)
117{
118 void* dest = GetPointer();
119 if (dest == nullptr)
120 {
121 throw NullPointerException("RefTensorHandle::CopyInFrom called with a null dest pointer");
122 }
123 if (src == nullptr)
124 {
125 throw NullPointerException("RefTensorHandle::CopyInFrom called with a null src pointer");
126 }
127 memcpy(dest, src, GetTensorInfo().GetNumBytes());
128}
129
130MemorySourceFlags RefTensorHandle::GetImportFlags() const
131{

Callers

nothing calls this directly

Calls 3

GetTensorInfoFunction · 0.85
GetNumBytesMethod · 0.45

Tested by

no test coverage detected