Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PythonOT/POT
/ sign
Method
sign
ot/backend.py:2069–2070 ·
view source on GitHub ↗
(self, a)
Source
from the content-addressed store, hash-verified
2067
return
torch.min(torch.stack(torch.broadcast_tensors(a, b)), axis=0)[0]
2068
2069
def
sign(self, a):
2070
return
torch.sign(a)
2071
2072
def
dot(self, a, b):
2073
return
torch.matmul(a, b)
Callers
nothing calls this directly
Calls
1
sign
Method · 0.45
Tested by
no test coverage detected