Class Neg

Inheritance Relationships

Base Type

Class Documentation

class Neg : public mindspore::ops::PrimitiveC

Returns a tensor with negative values of the input tensor element-wise. Refer to Python API mindspore.ops.Neg for more details.

Public Functions

inline Neg()

Constructor.

~Neg() = default

Destructor.

inline void Init()

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