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

Method where

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

Source from the content-addressed store, hash-verified

3202 return a
3203
3204 def where(self, condition, x=None, y=None):
3205 if x is None and y is None:
3206 return tnp.where(condition)
3207 else:
3208 return tnp.where(condition, x, y)
3209
3210 def copy(self, a):
3211 return tf.identity(a)

Callers

nothing calls this directly

Calls 1

whereMethod · 0.45

Tested by

no test coverage detected