rllm.utils¶
Utils¶
Download the content of a URL to a specific folder. |
|
Download the content of a Google Drive file to a specific folder. |
|
Extract a zip archive to a specific folder. |
|
Convert a scipy sparse matrix to a |
|
Return |
|
Get indices of non-zero elements from an adjacency matrix. |
|
Check if the given adjacency matrix represents an undirected graph. |
|
Convert the given adjacency matrix to an undirected graph representation by adding reverse edges. |
|
Convert a sparse adjacency matrix to an edge index tensor. |
|
Compute the sum of elements in |
|
Compute the segment-wise softmax scores of elements in |
|
Sort the edge index. |
|
Convert a sorted index tensor to a CSR/CSC pointer tensor. |
|
Perform an indirect stable sort using a sequence of keys. |
|
Remap the keys of the input dictionary using a mapping. |
|
Support cast init from tuple or dict input. |