Class TypeCast

Inheritance Relationships

Base Type

Class Documentation

class TypeCast : public mindspore::dataset::TensorTransform

Cast the MindSpore data type of a tensor to another.

Public Functions

explicit TypeCast(mindspore::DataType data_type)

Constructor.

Parameters

data_type[in] mindspore::DataType to be cast to.

~TypeCast() = default

Destructor.