Class CumSum

Inheritance Relationships

Base Type

Class Documentation

class CumSum : public mindspore::ops::PrimitiveC

Computes the cumulative sum of input tensor along axis. Refer to Python API mindspore.ops.CumSum for more details.

Public Functions

inline CumSum()

Constructor.

~CumSum() = default

Destructor.

void Init(const bool exclusive, const bool reverse)

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

void set_exclusive(const bool exclusive)

Set exclusive.

void set_reverse(const bool reverse)

Set reverse.

bool get_exclusive() const

Get exclusive.

Returns

exclusive.

bool get_reverse() const

Get reverse.

Returns

reverse.