Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
undo styling
  • Loading branch information
dwahdany authored Mar 22, 2024
commit e2d36d5068fcd9826e53906b5905aed629044480
4 changes: 1 addition & 3 deletions opacus/utils/batch_memory_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,12 @@
from typing import List

import numpy as np
from torch.utils.data import BatchSampler, DataLoader, Sampler

from opacus.optimizers import DPOptimizer
from opacus.utils.uniform_sampler import (
DistributedUniformWithReplacementSampler,
UniformWithReplacementSampler,
)

yeah they have a citation link down at the bottom. I can ask Thomas if there's a paper he'd like us to cite for that analysis too

class BatchSplittingSampler(Sampler[List[int]]):
"""
Expand Down