Class Diag

Inheritance Relationships

Base Type

Class Documentation

class Diag : public mindspore::ops::PrimitiveC

Constructs a diagonal tensor with a given diagonal values. Refer to Python API mindspore.ops.Diag for more details.

Public Functions

inline Diag()

Constructor.

~Diag() = default

Destructor.