Sparse tensor¶
Mars tensor supports sparse tensor, unfortunately, only 2-D sparse tensors are available for now. Multi-dimensional sparse tensors will be supported later.
Functions to create sparse tensor¶
Return a new tensor of given shape and type, filled with zeros. |
|
Return a 2-D tensor with ones on the diagonal and zeros elsewhere. |
|
Return the identity tensor. |
|
Return random integers from low (inclusive) to high (exclusive). |