gsnn.models.SparseLinear
Batched sparse matrix multiplication that scales with GPU’s better.
Functions
|
Create batched edge_index/edge_weight tensors for bipartite graphs. |
|
|
|
|
|
|
|
|
|
|
|
Classes
|
|
|
- class gsnn.models.SparseLinear.SparseLinear(*args: Any, **kwargs: Any)[source]
Bases:
Module
- gsnn.models.SparseLinear.batch_graphs(N, M, edge_index, B, device)[source]
Create batched edge_index/edge_weight tensors for bipartite graphs.
- Parameters:
- Returns:
Batched edge index.
- Return type:
- gsnn.models.SparseLinear.kaiming_normal(size, fan_in, fan_out, fan_mode='fan_in', gain=1, dtype=torch.float32)[source]