Skip to content

Commit

Permalink
add import for pkg_resources
Browse files Browse the repository at this point in the history
  • Loading branch information
ycq091044 committed Feb 24, 2024
1 parent 6d2912f commit 240f8e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyhealth/sampler/sage_sampler.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import copy
from typing import List, Optional, Tuple, NamedTuple, Union, Callable, TypeVar

import pkg_resources
import torch
from torch import Tensor

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

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

0 comments on commit 240f8e2

Please sign in to comment.