NOTES
API Reference
Computes the (unweighted) degree of a given one-dimensional index tensor.
index (tensor) – Index tensor.
num_nodes (int, optional) – The number of nodes, i.e. max_val + 1 of index. (default: None)
max_val + 1
index
None
dtype (tlx.dtype, optional) – The desired data type of the returned tensor.
tlx.dtype
Tensor