Class Neg

Inheritance Relationships

Base Type

  • public mindspore::ops::BaseOperator

Class Documentation

class Neg : public mindspore::ops::BaseOperator

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.

inline void Init() const

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