mxnet
Public Member Functions | Public Attributes | List of all members
mxnet::IIterator< DType > Class Template Referenceabstract

iterator type More...

#include <io.h>

Inheritance diagram for mxnet::IIterator< DType >:
Inheritance graph
Collaboration diagram for mxnet::IIterator< DType >:
Collaboration graph

Public Member Functions

virtual void Init (const std::vector< std::pair< std::string, std::string > > &kwargs)=0
 set the parameters and init iter More...
 
virtual void BeforeFirst (void)=0
 reset the iterator More...
 
virtual bool Next (void)=0
 move to next item More...
 
virtual const DType & Value (void) const =0
 get current data More...
 
virtual ~IIterator (void)
 constructor More...
 
void SetDataName (const std::string data_name)
 set data name to each attribute of data More...
 

Public Attributes

std::vector< std::string > data_names
 store the name of each data, it could be used for making NDArrays More...
 

Detailed Description

template<typename DType>
class mxnet::IIterator< DType >

iterator type

Template Parameters
DTypedata type

Constructor & Destructor Documentation

template<typename DType >
virtual mxnet::IIterator< DType >::~IIterator ( void  )
inlinevirtual

constructor

Member Function Documentation

template<typename DType >
virtual void mxnet::IIterator< DType >::BeforeFirst ( void  )
pure virtual

reset the iterator

template<typename DType >
virtual void mxnet::IIterator< DType >::Init ( const std::vector< std::pair< std::string, std::string > > &  kwargs)
pure virtual

set the parameters and init iter

Parameters
kwargskey-value pairs
template<typename DType >
virtual bool mxnet::IIterator< DType >::Next ( void  )
pure virtual

move to next item

template<typename DType >
void mxnet::IIterator< DType >::SetDataName ( const std::string  data_name)
inline

set data name to each attribute of data

template<typename DType >
virtual const DType& mxnet::IIterator< DType >::Value ( void  ) const
pure virtual

get current data

Member Data Documentation

template<typename DType >
std::vector<std::string> mxnet::IIterator< DType >::data_names

store the name of each data, it could be used for making NDArrays


The documentation for this class was generated from the following file: