A random accessable dataset which provides GetLen() and GetItem(). Unlike DataIter, it's a static lookup storage which is friendly to random access. The dataset itself should NOT contain data processing, which should be applied during data augmentation or transformation processes.
More...
#include <io.h>
|
virtual uint64_t | GetLen (void) const =0 |
| Get the size of the dataset. More...
|
|
virtual bool | GetItem (uint64_t idx, std::vector< NDArray > *ret)=0 |
| Get the ndarray items given index in dataset. More...
|
|
virtual | ~Dataset (void) |
|
A random accessable dataset which provides GetLen() and GetItem(). Unlike DataIter, it's a static lookup storage which is friendly to random access. The dataset itself should NOT contain data processing, which should be applied during data augmentation or transformation processes.
◆ ~Dataset()
virtual mxnet::Dataset::~Dataset |
( |
void |
| ) |
|
|
inlinevirtual |
◆ GetItem()
virtual bool mxnet::Dataset::GetItem |
( |
uint64_t |
idx, |
|
|
std::vector< NDArray > * |
ret |
|
) |
| |
|
pure virtual |
Get the ndarray items given index in dataset.
- Parameters
-
idx | the integer index for required data |
ret | the returned ndarray items |
◆ GetLen()
virtual uint64_t mxnet::Dataset::GetLen |
( |
void |
| ) |
const |
|
pure virtual |
Get the size of the dataset.
The documentation for this class was generated from the following file:
- /work/mxnet/include/mxnet/io.h