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

Function h2

ot/batch/_quadratic.py:127–130  ·  view source on GitHub ↗
(C2)

Source from the content-addressed store, hash-verified

125 return 2 * C1
126
127 def h2(C2):
128 if C2.ndim == 3:
129 C2 = nx.unsqueeze(C2, -1)
130 return C2
131
132 elif loss == "kl":
133 assert logits in [

Callers 1

compute_tensor_batchFunction · 0.70

Calls 1

unsqueezeMethod · 0.45

Tested by

no test coverage detected