Class Compose

Inheritance Relationships

Base Type

Class Documentation

class Compose : public mindspore::dataset::TensorTransform

Compose a list of transforms into a single transform.

Public Functions

explicit Compose(const std::vector<TensorTransform*> &transforms)

Constructor.

Parameters

transforms[in] A vector of raw pointers to TensorTransform objects to be applied.

explicit Compose(const std::vector<std::shared_ptr<TensorTransform>> &transforms)

Constructor.

Parameters

transforms[in] A vector of shared pointers to TensorTransform objects to be applied.

explicit Compose(const std::vector<std::reference_wrapper<TensorTransform>> &transforms)

Constructor.

Parameters

transforms[in] A vector of TensorTransform objects to be applied.

~Compose() = default

Destructor.