| 100 | } |
| 101 | |
| 102 | void 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 | |
| 116 | void RefTensorHandle::CopyInFrom(const void* src) |
| 117 | { |
nothing calls this directly
no test coverage detected