| 62 | */ |
| 63 | template <typename T> |
| 64 | RawTensor(SimpleTensor<T> &&tensor) |
| 65 | { |
| 66 | _buffer = std::unique_ptr<uint8_t[]>(reinterpret_cast<uint8_t *>(tensor._buffer.release())); |
| 67 | _shape = std::move(tensor._shape); |
| 68 | _format = tensor._format; |
| 69 | _data_type = tensor._data_type; |
| 70 | _num_channels = tensor._num_channels; |
| 71 | _data_layout = tensor._data_layout; |
| 72 | } |
| 73 | |
| 74 | /** Conversion operator to SimpleTensor. |
| 75 | * |