Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor Offline-ER to work with collate_fn #390

Merged
merged 14 commits into from
Sep 22, 2023
Prev Previous commit
Next Next commit
fix small bug
  • Loading branch information
wistuba committed Sep 19, 2023
commit 40ffc8813fa0c177fe7988bce0b8093b8b5293b3
2 changes: 1 addition & 1 deletion src/renate/utils/pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def __init__(
True,
)
self.subset_samplers.append(subset_sampler)
num_batches.append((end_idx - start_idx + 1) // batch_size)
num_batches.append((end_idx - start_idx) // batch_size)
data_start_idx = data_end_idx
self.length = (
min(num_batches)
Expand Down