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

Method todense

ot/backend.py:3198–3202  ·  view source on GitHub ↗
(self, a)

Source from the content-addressed store, hash-verified

3196 return a
3197
3198 def todense(self, a):
3199 if self.issparse(a):
3200 return tf.sparse.to_dense(tf.sparse.reorder(a))
3201 else:
3202 return a
3203
3204 def where(self, condition, x=None, y=None):
3205 if x is None and y is None:

Callers 1

coo_matrixMethod · 0.95

Calls 1

issparseMethod · 0.95

Tested by

no test coverage detected