Class OnesLike
Defined in File ones_like.h
Inheritance Relationships
Base Type
public mindspore::ops::PrimitiveC
(Class PrimitiveC)
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.
-
inline OnesLike()