Contents

sort(_:axisTensor:name:)

Sorts the elements of the input tensor along the specified axis.

Declaration

func sort(_ tensor: MPSGraphTensor, axisTensor: MPSGraphTensor, name: String?) -> MPSGraphTensor

Parameters

  • tensor:

    The input tensor

  • axisTensor:

    The tensor dimension over which you sort the tensor

  • name:

    The name for the operation.

Return Value

A valid MPSGraphTensor object