Beatmup
|
Copies data from multidimensional strided tensor to a continuous memory space. More...
Public Member Functions | |
Copy (const pybind11::buffer_info &info, void *outputBuffer, size_t limit) | |
size_t | remaining () const |
Private Member Functions | |
size_t | discover (int dim=0) |
void | copy (const uint8_t *inPtr, int dim=0) |
Private Attributes | |
const pybind11::buffer_info & | info |
int | firstStridedDim |
first non-dense dimension More... | |
size_t | packetSize |
largest continuous packet size More... | |
uint8_t * | outPtr |
output pointer More... | |
size_t | limit |
number of bytes remaining to copy More... | |
Copies data from multidimensional strided tensor to a continuous memory space.
Makes use of densely packed dimensions for a faster copy.
Definition at line 31 of file chunk_collection.cpp.
|
inline |
Definition at line 92 of file chunk_collection.cpp.
|
inlineprivate |
Definition at line 44 of file chunk_collection.cpp.
|
inlineprivate |
Definition at line 78 of file chunk_collection.cpp.
|
inline |
Definition at line 99 of file chunk_collection.cpp.
|
private |
Definition at line 33 of file chunk_collection.cpp.
|
private |
first non-dense dimension
Definition at line 34 of file chunk_collection.cpp.
|
private |
largest continuous packet size
Definition at line 35 of file chunk_collection.cpp.
|
private |
output pointer
Definition at line 36 of file chunk_collection.cpp.
|
private |
number of bytes remaining to copy
Definition at line 37 of file chunk_collection.cpp.