Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PythonOT/POT
/ solve
Method
solve
ot/backend.py:2385–2386 ·
view source on GitHub ↗
(self, a, b)
Source
from the content-addressed store, hash-verified
2383
return
results
2384
2385
def
solve(self, a, b):
2386
return
torch.linalg.solve(a, b)
2387
2388
def
trace(self, a):
2389
return
torch.diagonal(a, dim1=-2, dim2=-1).sum(-1)
Callers
nothing calls this directly
Calls
1
solve
Method · 0.45
Tested by
no test coverage detected