Class PullIterator

Inheritance Relationships

Base Type

Class Documentation

class PullIterator : public mindspore::dataset::Iterator

Public Functions

PullIterator()

Constructor.

~PullIterator() = default

Destructor.

virtual Status GetNextRow(MSTensorVec *const row) override

Function to get 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 else false.

Status GetRows(int32_t num_rows, std::vector<MSTensorVec> *const row)

Function to get specified rows from the data pipeline.

Note

Type of return data is a vector(without column name). This behavior is subject to change.

Parameters
  • num_rows[in] The number of rows to fetch.

  • row[out] The output tensor row.

Returns

Status error code, returns OK if no error encountered else false.

Status BuildAndLaunchTree(std::shared_ptr<Dataset> ds)

Method for building and launching the pipeline.

Note

Consider making this function protected.

Parameters

ds[in] The root node that calls the function.

Returns

Status error code, returns OK if no error encountered.