MCPcopy Create free account
hub / github.com/PythonOT/POT / sort

Method sort

ot/backend.py:2105–2107  ·  view source on GitHub ↗
(self, a, axis=-1)

Source from the content-addressed store, hash-verified

2103 return torch.einsum(subscripts, *operands)
2104
2105 def sort(self, a, axis=-1):
2106 sorted0, indices = torch.sort(a, dim=axis)
2107 return sorted0
2108
2109 def argsort(self, a, axis=-1):
2110 sorted, indices = torch.sort(a, dim=axis)

Callers

nothing calls this directly

Calls 1

sortMethod · 0.45

Tested by

no test coverage detected