Skip to content

Commit cb61c27

Browse files
authored
[Bug Fix] Update dist_neighbor_sampler to handle heterogeneous case where node labels is None (#153)
1 parent 7c0fd85 commit cb61c27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphlearn_torch/python/distributed/dist_neighbor_sampler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def __init__(self,
182182
local_only=False, rpc_router=self.rpc_router, device=self.device
183183
)
184184
else:
185-
assert isinstance(self.dist_node_labels, Dict)
185+
assert self.dist_node_labels is None or isinstance(self.dist_node_labels, Dict)
186186
if self.dist_node_labels is not None and \
187187
all(isinstance(value, Feature) for value in self.dist_node_labels.values()):
188188
self.dist_node_labels = DistFeature(

0 commit comments

Comments
 (0)