From 88aa7f8fddbfe81a3f2baea8b3f2a47477d9e164 Mon Sep 17 00:00:00 2001 From: Jiho Choi Date: Mon, 8 Aug 2022 17:39:25 +0900 Subject: [PATCH 1/2] Fix a typo in the example code of HGTLoader() --- torch_geometric/loader/hgt_loader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torch_geometric/loader/hgt_loader.py b/torch_geometric/loader/hgt_loader.py index 00e9c2d3eb53..34ad5f9c11a4 100644 --- a/torch_geometric/loader/hgt_loader.py +++ b/torch_geometric/loader/hgt_loader.py @@ -52,7 +52,7 @@ class HGTLoader(torch.utils.data.DataLoader): num_samples={key: [512] * 4 for key in hetero_data.node_types}, # Use a batch size of 128 for sampling training nodes of type paper batch_size=128, - input_nodes=('paper': hetero_data['paper'].train_mask), + input_nodes=('paper', hetero_data['paper'].train_mask), ) sampled_hetero_data = next(iter(loader)) From 83222c2ec33a8e1ee92bc8731819b38e4a80d67c Mon Sep 17 00:00:00 2001 From: Jiho Choi Date: Mon, 8 Aug 2022 17:47:49 +0900 Subject: [PATCH 2/2] Fix a typo in the example code of HGTLoader(), with CHANGELOG --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2c39dcb3e8aa..e34fe217bfc1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 +- Fixed typos in the documentation ([#5161](https://github.com/pyg-team/pytorch_geometric/pull/5161)) - `NeighborSampler` supports graphs without edges ([#5072](https://github.com/pyg-team/pytorch_geometric/pull/5072)) - Added the `MeanSubtractionNorm` layer ([#5068](https://github.com/pyg-team/pytorch_geometric/pull/5068)) - Added `pyg_lib.segment_matmul` integration within `RGCNConv` ([#5052](https://github.com/pyg-team/pytorch_geometric/pull/5052), [#5096](https://github.com/pyg-team/pytorch_geometric/pull/5096))