Contents

reductionProduct(with:axes:name:)

Creates a reduction product operation and returns the result tensor.

Declaration

func reductionProduct(with tensor: MPSGraphTensor, axes: [NSNumber]?, name: String?) -> MPSGraphTensor

Parameters

  • tensor:

    Input tensor

  • axes:

    Axes of reduction

  • name:

    Name for the operation

Return Value

A valid MPSGraphTensor object.