Have somebody know how to train a model with sparse matrices?

Have somebody know how to train a model with sparse matrices? That is to say, the W is a sparse matrix.