dgl.sparse.DiagMatrix.shape

property DiagMatrix.shape

Returns the shape of the diagonal matrix.

Returns

The shape of the diagonal matrix

Return type

Tuple[int]