Skip to content

SparseCOOMatrix

Minimal stand-in for an unpickled scipy.sparse.coo_matrix.

Exposes the row, col and data arrays and the shape of the matrix, so that SciPy is not needed to read the file.

from mlx_graphs.datasets.utils.torch_serialization import SparseCOOMatrix · mlx_graphs/datasets/utils/torch_serialization.py