Contents

sort(_:axis:descending:name:)

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

Declaration

func sort(_ tensor: MPSGraphTensor, axis: Int, descending: Bool, name: String?) -> MPSGraphTensor

Parameters

  • tensor:

    The input tensor

  • axis:

    The tensor dimension over which you sort the tensor

  • descending:

    If true, reverse the sort direction

  • name:

    The name for the operation.

Return Value

A valid MPSGraphTensor object