Class Ones

Inheritance Relationships

Base Type

  • public mindspore::ops::BaseOperator

Class Documentation

class Ones : public mindspore::ops::BaseOperator

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

Public Functions

inline Ones()

Constructor.

inline void Init() const

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