Contents

reductionSum(with:axes:name:)

Creates a reduction sum operation and returns the result tensor.

Declaration

func reductionSum(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.