CSXMatrix3d¶
- class src.sparse_torch.csx_matrix.CSXMatrix3d(inp, shape, device=None)[source]¶
- as_list(mask=None)[source]¶
Return [indices, indptr, data] in a list. :param mask: Optional. It should be an iterable containing 3 items, each indicating its corresponding attribute
shall be masked out or not.
- Returns
[indices, indptr, data] * mask
- property device¶
- get_batch(item)[source]¶
Get a certain batch in tuple (indices, indptr, data) :param item: batch index :return: (indices, indptr, data)
- property sptype¶