Class Identity

Inheritance Relationships

Base Type

Class Documentation

class Identity : public mindspore::ops::PrimitiveC

Returns a Tensor with the same shape and contents as input. Refer to Python API mindspore.ops.Identity for more details.

Public Functions

inline Identity()

Constructor.

~Identity() = default

Destructor.

inline void Init()

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