Class PullIterator
Defined in File iterator.h
Inheritance Relationships
Base Type
public mindspore::dataset::Iterator
(Class Iterator)
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.
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.
-
PullIterator()