Class Sub

Inheritance Relationships

Base Type

Derived Type

Class Documentation

class Sub : public mindspore::ops::PrimitiveC

Subtracts the second input tensor from the first input tensor element-wise. Refer to Python API mindspore.ops.Sub for more details.

Subclassed by mindspore::ops::SubFusion

Public Functions

inline Sub()

Constructor.

~Sub() = default

Destructor.

inline void Init()

Init.