rllm.utils.is_torch_sparse_tensor¶ class rllm.utils.is_torch_sparse_tensor(src)[source]¶ Bases: Return True if the input is a torch.sparse.Tensor. Parameters: src (Any) – The object to check. Returns: True if src is a sparse tensor, False otherwise. Return type: bool