Class Concatenate
Defined in File transforms.h
Inheritance Relationships
Base Type
public mindspore::dataset::TensorTransform
(Class TensorTransform)
Class Documentation
-
class Concatenate : public mindspore::dataset::TensorTransform
Concatenate all tensors into a single tensor.
Public Functions
-
explicit Concatenate(int8_t axis = 0, const MSTensor &prepend = {}, const MSTensor &append = {})
Constructor.
- 参数
axis – [in] Concatenate the tensors along given axis, only support 0 or -1 so far (default=0).
prepend – [in] MSTensor to be prepended to the concatenated tensors (default={}).
append – [in] MSTensor to be appended to the concatenated tensors (default={}).
样例/* Define operations */ mindspore::MSTensor append_MSTensor; mindspore::MSTensor prepend_MSTensor; auto concatenate_op = transforms::Concatenate(0, append_MSTensor, prepend_MSTensor); /* dataset is an instance of Dataset object */ dataset = dataset->Map({concatenate_op}, // operations {"column"}); // input columns
-
~Concatenate() = default
Destructor.
-
explicit Concatenate(int8_t axis = 0, const MSTensor &prepend = {}, const MSTensor &append = {})