Skip to content

Commit

Permalink
Change type parameter of our sampler (#268)
Browse files Browse the repository at this point in the history
This is for aligning with pytorch
  • Loading branch information
tmke8 authored Oct 9, 2023
1 parent 4152841 commit 2140e16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ranzen/torch/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ class TrainingMode(Enum):
"""step-based training"""


class BatchSamplerBase(Sampler[Sequence[int]]):
class BatchSamplerBase(Sampler[List[int]]):
def __init__(self, epoch_length: int | None = None) -> None:
self.epoch_length: Final[int | None] = epoch_length

Expand Down

0 comments on commit 2140e16

Please sign in to comment.