Skip to content

[Roadmap] PyTorch SparseTensor Support 馃殌#5867

Description

@EdisonLeeeee

馃殌 The feature, motivation and pitch

PyG currently accepts torch.LongTensor: edge_index and torch_sparse.SparseTensor: adj in MessagePassing, which limits its flexibility for users who use native PyTorch SparseTensor. As such, an additional step is required for them to convert one to another.

The goal of this roadmap is to track the integration of native PyTorch SparseTensor support into PyG. After integration, the edge_index in MessagePassing can also accept PyTorch SparseTensor while allowing backpropagation like torch_sparse.SparseTensor.

General Roadmap

  • Add PyTorch SparseTensor support for torch_geometric.nn.MessagePassing and corresponding layers inherited from it
  • Add PyTorch SparseTensor support for torch_geometric.transforms
  • Add PyTorch SparseTensor support for torch_geometric.loader
  • Replace torch_sparse.SparseTensor based implementations with PyTorch functionality
  • ...

Implementations

Utility functions

torch_geometric.nn.*

torch_geometric.transforms.*

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions