cumulativeSum(_:axis:exclusive:reverse:name:)
Computes the cumulative sum of the input tensor along the specified axis.
Declaration
func cumulativeSum(_ tensor: MPSGraphTensor, axis: Int, exclusive: Bool, reverse: Bool, name: String?) -> MPSGraphTensorParameters
- tensor:
The input tensor
- axis:
The tensor dimension where you compute the cumulative operation
- exclusive:
If true, perform the exclusive cumulative operation, and the first element will be equal to zero
- reverse:
If true, reverse the direction of the cumulative operation along the specified axis
- name:
The name for the operation.
Return Value
A valid MPSGraphTensor object