mxnet
Public Member Functions | List of all members
mxnet::Dataset Class Referenceabstract

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>

Collaboration diagram for mxnet::Dataset:
Collaboration graph

Public Member Functions

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)
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ~Dataset()

virtual mxnet::Dataset::~Dataset ( void  )
inlinevirtual

Member Function Documentation

◆ GetItem()

virtual bool mxnet::Dataset::GetItem ( uint64_t  idx,
std::vector< NDArray > *  ret 
)
pure virtual

Get the ndarray items given index in dataset.

Parameters
idxthe integer index for required data
retthe 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: