Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).

### Fixed

- Fix MovieLens dataset incompatibility with `sentence-transformers>=5.0.0` ([#10668](https://github.com/pyg-team/pytorch_geometric/pull/10668)
- Removed an unnecessary device synchronization in `torch_geometric.utils.softmax` ([#10499](https://github.com/pyg-team/pytorch_geometric/pull/10499))
- Fixed loading of legacy HuggingFace BERT checkpoints ([#10631](https://github.com/pyg-team/pytorch_geometric/pull/10631))
- Fixed `return_attention_weights: bool` being not respected in `GATConv` and `GATv2Conv` ([#10596](https://github.com/pyg-team/pytorch_geometric/pull/10596))
Expand Down
3 changes: 2 additions & 1 deletion torch_geometric/datasets/movie_lens.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ def process(self) -> None:

model = SentenceTransformer(self.model_name)
with torch.no_grad():
emb = model.encode(df['title'].values, show_progress_bar=True,
emb = model.encode(df['title'].astype(str).tolist(),
show_progress_bar=True,
convert_to_tensor=True).cpu()
Comment thread
akihironitta marked this conversation as resolved.
Outdated

data['movie'].x = torch.cat([emb, genres], dim=-1)
Expand Down
Loading