Class Duplicate

Inheritance Relationships

Base Type

Class Documentation

class Duplicate : public mindspore::dataset::TensorTransform

Duplicate the input tensor to a new output tensor. The input tensor is carried over to the output list.

Public Functions

Duplicate()

Constructor.

Example
/* Define operations */
auto duplicate_op = transforms::Duplicate();

/* dataset is an instance of Dataset object */
dataset = dataset->Map({duplicate_op},               // operations
                       {"column"},                   // input columns
                       {"column", "column_copy"});   // output columns

~Duplicate() = default

Destructor.