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

Method issparse

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

Source from the content-addressed store, hash-verified

2287 )
2288
2289 def issparse(self, a):
2290 return getattr(a, "is_sparse", False) or getattr(a, "is_sparse_csr", False)
2291
2292 def tocsr(self, a):
2293 # Versions older than 1.9 do not support CSR tensors. PyTorch 1.9 and 1.10 offer a very limited support

Callers 2

eliminate_zerosMethod · 0.95
todenseMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected