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

Method norm

ot/backend.py:2090–2091  ·  view source on GitHub ↗
(self, a, axis=None, keepdims=False)

Source from the content-addressed store, hash-verified

2088 return torch.pow(a, exponents)
2089
2090 def norm(self, a, axis=None, keepdims=False):
2091 return torch.linalg.norm(a, dim=axis, keepdims=keepdims)
2092
2093 def any(self, a):
2094 return torch.any(a)

Callers

nothing calls this directly

Calls 1

normMethod · 0.45

Tested by

no test coverage detected