iterator type
More...
#include <io.h>
|
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...
|
|
virtual int64_t | GetLenHint (void) const |
| request iterator length hint for current epoch. Note that the returned value can be < 0, indicating that the length of iterator is unknown unless you went through all data. More...
|
|
virtual | ~DataIter (void) DMLC_THROW_EXCEPTION |
| destructor More...
|
|
|
std::vector< std::string > | data_names |
| store the name of each data, it could be used for making NDArrays More...
|
|
template<typename DType>
class mxnet::IIterator< DType >
iterator type
- Template Parameters
-
◆ ~IIterator()
template<typename DType >
◆ BeforeFirst()
template<typename DType >
◆ GetLenHint()
template<typename DType >
request iterator length hint for current epoch. Note that the returned value can be < 0, indicating that the length of iterator is unknown unless you went through all data.
◆ Init()
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
-
◆ Next()
template<typename DType >
◆ SetDataName()
template<typename DType >
set data name to each attribute of data
◆ Value()
template<typename DType >
◆ data_names
template<typename DType >
store the name of each data, it could be used for making NDArrays
The documentation for this class was generated from the following file:
- /work/mxnet/include/mxnet/io.h