Skip to content

Commit 9d4cf69

Browse files
authored
Merge pull request #273 from sunlabuiuc/20240224-neighborsampler-bug
add import for pkg_resources
2 parents 6d2912f + 240f8e2 commit 9d4cf69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyhealth/sampler/sage_sampler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import copy
22
from typing import List, Optional, Tuple, NamedTuple, Union, Callable, TypeVar
3-
3+
import pkg_resources
44
import torch
55
from torch import Tensor
66

@@ -207,4 +207,4 @@ def sample(self, batch):
207207
return {"image": image, "label": label, "batch_size": batch_size, "node_id": n_id, "adjacencies": adjs}
208208

209209
def __repr__(self):
210-
return '{}(sizes={})'.format(self.__class__.__name__, self.sizes)
210+
return '{}(sizes={})'.format(self.__class__.__name__, self.sizes)

0 commit comments

Comments
 (0)