How to represent sparse matrix in the new tensor library
Created by: QiJune
In paddle, sparse matrix are organized with CSR format. Since we decide to use Array
to represent a tensor with specific Dim
in the new tensor library, we may use an union struct containing three array to represent sparse matrix. The two of them are int
, and the left one is float
.