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

Method where

ot/backend.py:2318–2322  ·  view source on GitHub ↗
(self, condition, x=None, y=None)

Source from the content-addressed store, hash-verified

2316 return a
2317
2318 def where(self, condition, x=None, y=None):
2319 if x is None and y is None:
2320 return torch.where(condition)
2321 else:
2322 return torch.where(condition, x, y)
2323
2324 def copy(self, a):
2325 return torch.clone(a)

Callers

nothing calls this directly

Calls 1

whereMethod · 0.45

Tested by

no test coverage detected