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

Method unique

ot/backend.py:2204–2205  ·  view source on GitHub ↗
(self, a, return_inverse=False)

Source from the content-addressed store, hash-verified

2202 return torch.diag(a, diagonal=k)
2203
2204 def unique(self, a, return_inverse=False):
2205 return torch.unique(a, return_inverse=return_inverse)
2206
2207 def logsumexp(self, a, axis=None, keepdims=False):
2208 if axis is not None:

Callers

nothing calls this directly

Calls 1

uniqueMethod · 0.45

Tested by

no test coverage detected