Skip to content

clear_csr_cache

clear_csr_cache() -> None

Drops all cached CSR conversions used by the "auto" and "csr" formats of fused message passing.

Source code in mlx_graphs/nn/message_passing.py
def clear_csr_cache() -> None:
    """Drops all cached CSR conversions used by the ``"auto"`` and ``"csr"``
    formats of fused message passing."""
    _csr_cache.clear()

from mlx_graphs.nn import clear_csr_cache · mlx_graphs/nn/message_passing.py