Class MapDataset
Defined in File datasets.h
Inheritance Relationships
Base Type
public mindspore::dataset::Dataset
(Class Dataset)
Class Documentation
-
class MapDataset : public mindspore::dataset::Dataset
The result of applying the Map operator to the input Dataset.
Public Functions
Constructor of MapDataset.
Note
Applies each operation in operations to this dataset.
- Parameters
input – [in] The dataset which need to apply map operation.
operations – [in] Vector of raw pointers to TensorTransform objects to be applied on the dataset. Operations are applied in the order they appear in this list.
input_columns – [in] Vector of the names of the columns that will be passed to the first operation as input. The size of this list must match the number of input columns expected by the first operator. The default input_columns is the first column.
output_columns – [in] Vector of names assigned to the columns outputted by the last operation. This parameter is mandatory if len(input_columns) != len(output_columns). The size of this list must match the number of output columns of the last operation. The default output_columns will have the same name as the input columns, i.e., the columns will be replaced.
project_columns – [in] A list of column names to project.
cache – [in] Tensor cache to use (default=nullptr which means no cache is used).
callbacks – [in] List of Dataset callbacks to be called.
-
~MapDataset() override = default
Destructor of MapDataset.