Class FilterDataset

Inheritance Relationships

Base Type

Class Documentation

class FilterDataset : public mindspore::dataset::Dataset

The result of applying filter predicate to the input Dataset.

Public Functions

FilterDataset(const std::shared_ptr<Dataset> &input, const std::function<MSTensorVec(MSTensorVec)> &predicate, const std::vector<std::vector<char>> &input_columns)

Constructor of FilterDataset.

Note

If input_columns is not provided or empty, all columns will be used.

Parameters
  • input[in] The dataset which need to apply filter operation.

  • predicate[in] Function callable which returns a boolean value. If false then filter the element.

  • input_columns[in] List of names of the input columns to filter.

~FilterDataset() override = default

Destructor of FilterDataset.