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