Class Iterator

Nested Relationships

Nested Types

Inheritance Relationships

Derived Type

Class Documentation

class Iterator

Subclassed by mindspore::dataset::PullIterator

Public Functions

Iterator()

Constructor.

~Iterator()

Destructor.

Status BuildAndLaunchTree(std::shared_ptr<Dataset> ds, int32_t num_epochs)

Method for building and launching the pipeline.

Parameters
  • ds[in] The last DatasetOp in the dataset pipeline.

  • num_epochs[in] Number of epochs passed down to EpochCtrlNode (default=-1, which means infinite epochs).

Returns

Status error code, returns OK if no error encountered.

inline Status GetNextRow(MSTensorMap *row)

Function to get the next row from the data pipeline.

Note

Type of return data is a unordered_map(with column name).

Parameters

row[out] The output tensor row.

Returns

Status error code, returns OK if no error encountered.

Status GetNextRowCharIF(MSTensorMapChar *row)

Char interface(CharIF) of GetNextRow.

Note

The reason for using this API is that std::string will be constrained by the compiler option ‘_GLIBCXX_USE_CXX11_ABI’ while char is free of this restriction.

virtual Status GetNextRow(MSTensorVec *row)

Function to get the next row from the data pipeline.

Note

Type of return data is a vector(without column name).

Parameters

row[out] The output tensor row.

Returns

Status error code, returns OK if no error encountered.

void Stop()

Function to shut down the data pipeline.

inline _Iterator begin()

Function to return the iterator points to the begin of Iterator.

inline _Iterator end()

Function to return the iterator points to the end of Iterator.

class _Iterator

Inter class as iterator of Iterator.

Public Functions

explicit _Iterator(Iterator *lt)

Constructor.

inline ~_Iterator()

Destructor.

_Iterator &operator++()

prefix ++ overload

inline MSTensorMap &operator*()

dereference operator

inline MSTensorMap *operator->()

dereference operator

inline bool operator!=(const _Iterator &rhs)

bool operator