Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
rusty1s committed Jul 30, 2022
1 parent 0f763ed commit a8fdb99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).

## [2.0.5] - 2022-MM-DD
### Added
- Support `SparseTensor` as edge label in `LightGCN` (#[5046](https://github.com/pyg-team/pytorch_geometric/issues/5046))
- Added inference benchmark suite ([#4915](https://github.com/pyg-team/pytorch_geometric/pull/4915))
- Added a dynamically sized batch sampler for filling a mini-batch with a variable number of samples up to a maximum size ([#4972](https://github.com/pyg-team/pytorch_geometric/pull/4972))
- Added fine grained options for setting `bias` and `dropout` per layer in the `MLP` model ([#4981](https://github.com/pyg-team/pytorch_geometric/pull/4981))
Expand Down Expand Up @@ -93,5 +94,4 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
- Fixed subclass behaviour of `process` and `download` in `Datsaet` ([#4586](https://github.com/pyg-team/pytorch_geometric/pull/4586))
- Fixed filtering of attributes for loaders in case `__cat_dim__ != 0` ([#4629](https://github.com/pyg-team/pytorch_geometric/pull/4629))
- Fixed `torch.fx` bug with `torch.nn.aggr` package ([#5021](https://github.com/pyg-team/pytorch_geometric/pull/5021)))
- Support SparseTensor label in LightGCN(#[5046](https://github.com/pyg-team/pytorch_geometric/issues/5046))
### Removed
6 changes: 1 addition & 5 deletions torch_geometric/nn/models/lightgcn.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,8 @@ def forward(self, edge_index: Adj,
if edge_label_index is None:
if isinstance(edge_index, SparseTensor):
edge_label_index = torch.stack(edge_index.coo()[:2], dim=0)

elif isinstance(edge_index, torch.Tensor):

edge_label_index = edge_index
else:
raise TypeError
edge_label_index = edge_index

out = self.get_embedding(edge_index)

Expand Down

0 comments on commit a8fdb99

Please sign in to comment.