Contents

cumulativeProduct(_:axis:name:)

Computes the cumulative product of the input tensor along the specified axis.

Declaration

func cumulativeProduct(_ tensor: MPSGraphTensor, axis: Int, name: String?) -> MPSGraphTensor

Parameters

  • tensor:

    The input tensor

  • axis:

    The tensor dimension where you compute the cumulative operation

  • name:

    The name for the operation.

Return Value

A valid MPSGraphTensor object