Skip to content

Commit 128bba7

Browse files
committed
changelog
1 parent fcbb02f commit 128bba7

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
55

66
## [2.0.5] - 2022-MM-DD
77
### Added
8+
- Added a `filter_per_worker` argument to data loaders to allow filtering of data within sub-processes ([#4873](https://github.com/pyg-team/pytorch_geometric/pull/4873))
89
- Added a `NeighborLoader` benchmark script ([#4815](https://github.com/pyg-team/pytorch_geometric/pull/4815))
910
- Added support for `FeatureStore` and `GraphStore` in `NeighborLoader` ([#4817](https://github.com/pyg-team/pytorch_geometric/pull/4817), [#4851](https://github.com/pyg-team/pytorch_geometric/pull/4851), [#4854](https://github.com/pyg-team/pytorch_geometric/pull/4854), [#4856](https://github.com/pyg-team/pytorch_geometric/pull/4856), [#4857](https://github.com/pyg-team/pytorch_geometric/pull/4857))
1011
- Added a `normalize` parameter to `dense_diff_pool` ([#4847](https://github.com/pyg-team/pytorch_geometric/pull/4847))

torch_geometric/loader/hgt_loader.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def __init__(
130130
self.colptr_dict, self.row_dict, self.perm_dict = to_hetero_csc(
131131
data, device='cpu', share_memory=kwargs.get('num_workers', 0) > 0)
132132

133-
super().__init__(input_nodes[1].tolist(), collate_fn=self.sample,
133+
super().__init__(input_nodes[1].tolist(), collate_fn=self.collate_fn,
134134
**kwargs)
135135

136136
def sample(self, indices: List[int]) -> HeteroData:

torch_geometric/loader/link_neighbor_loader.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ def __init__(
266266
self.directed = directed
267267
self.neg_sampling_ratio = neg_sampling_ratio
268268
self.transform = transform
269-
self.neighbor_sampler = neighbor_sampler
269+
self.filter_per_worker = filter_per_worker
270270
self.neighbor_sampler = neighbor_sampler
271271

272272
edge_type, edge_label_index = get_edge_label_index(

0 commit comments

Comments
 (0)