| 114 | } |
| 115 | |
| 116 | void 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 | |
| 130 | MemorySourceFlags RefTensorHandle::GetImportFlags() const |
| 131 | { |
nothing calls this directly
no test coverage detected