(self, a)
| 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 |
no outgoing calls
no test coverage detected