Class OnesLike

Inheritance Relationships

Base Type

  • public mindspore::ops::BaseOperator

Class Documentation

class OnesLike : public mindspore::ops::BaseOperator

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.

inline void Init() const

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