Class OnesLike

Inheritance Relationships

Base Type

Class Documentation

class OnesLike : public mindspore::ops::PrimitiveC

Creates a new tensor. The values of all elements are 1. Refer to Python API mindspore.ops.OnesLike for more details.

Public Functions

inline OnesLike()

Constructor.

~OnesLike() = default

Destructor.

inline void Init()

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