| 51 | |
| 52 | template<class DLT> |
| 53 | CDataStorageDLPackCPU<DLT>::CDataStorageDLPackCPU(DLT *tensor_m) |
| 54 | : m_pTensor(tensor_m) |
| 55 | { |
| 56 | // We assume all sanity checks have already been done |
| 57 | |
| 58 | uint8_t* data = static_cast<uint8_t*>(m_pTensor->dl_tensor.data); |
| 59 | data += m_pTensor->dl_tensor.byte_offset; |
| 60 | |
| 61 | this->m_pfData = reinterpret_cast<float*>(data); |
| 62 | } |
| 63 | |
| 64 | template<class DLT> |
| 65 | CDataStorageDLPackCPU<DLT>::~CDataStorageDLPackCPU() |
nothing calls this directly
no outgoing calls
no test coverage detected