fused_message_passing_mode
¶
fused_message_passing_mode(
enabled: bool,
format: Optional[FusedFormat] = None,
*,
softmax_spmm: Optional[bool] = None,
)
Context manager version of set_fused_message_passing().
Pass softmax_spmm=True to try the experimental fused neighbor softmax
and weighted sum. It requires CSR and skips active attention dropout.
Source code in mlx_graphs/nn/message_passing.py
from mlx_graphs.nn import fused_message_passing_mode · mlx_graphs/nn/message_passing.py