Class Ones

Inheritance Relationships

Base Type

Class Documentation

class Ones : public mindspore::ops::PrimitiveC

Creates a tensor filled with value ones. Refer to Python API mindspore.ops.Ones for more details.

Public Functions

inline Ones()

Constructor.

~Ones() = default

Destructor.

inline void Init()

Init. Refer to the parameters of Python API mindspore.ops.Ones for the inputs.