Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PythonOT/POT
/ f2
Function
f2
ot/batch/_quadratic.py:116–120 ·
view source on GitHub ↗
(C2)
Source
from the content-addressed store, hash-verified
114
return
C1**2
115
116
def
f2(C2):
117
if
C2.ndim == 4:
118
return
nx.sum(C2**2, axis=-1)
119
else
:
120
return
C2**2
121
122
def
h1(C1):
123
if
C1.ndim == 3:
Callers
1
compute_tensor_batch
Function · 0.70
Calls
2
sum
Method · 0.45
log
Method · 0.45
Tested by
no test coverage detected