Python wrappers
Public Python APIs implemented by this engine symbol.Sort a tensor along a single axis in ascending order.
Returns the sorted values; the permutation indices are computed
internally and consumed by the backward pass but are not exposed here.
See argsort_op for the indices alone, or topk_op for a
(values, indices) pair.
Math
Let be the permutation that sorts a along axis. Then
Parameters
aTensorImplPtrInput tensor.
axisintAxis along which to sort.
Returns
TensorImplPtrSorted tensor of the same shape and dtype as a.
Notes
Differentiable for F32 / F64 inputs only via IndexScatterBackward,
which scatters the incoming gradient back to the original positions.
Integer dtypes return a detached output.