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

Function f1

ot/batch/_quadratic.py:110–114  ·  view source on GitHub ↗
(C1)

Source from the content-addressed store, hash-verified

108 if loss == "sqeuclidean":
109
110 def f1(C1):
111 if C1.ndim == 4:
112 return nx.sum(C1**2, axis=-1)
113 else:
114 return C1**2
115
116 def f2(C2):
117 if C2.ndim == 4:

Callers 1

compute_tensor_batchFunction · 0.70

Calls 2

sumMethod · 0.45
zerosMethod · 0.45

Tested by

no test coverage detected