Class OneHot

Inheritance Relationships

Base Type

Class Documentation

class OneHot : public mindspore::dataset::TensorTransform

Convert the labels into OneHot format.

Public Functions

explicit OneHot(int32_t num_classes)

Constructor.

Parameters

num_classes[in] number of classes.

~OneHot() = default

Destructor.