MCPcopy Create free account
hub / github.com/CausalLearning/robust-unlearnable-examples / __init__

Method __init__

utils/data.py:113–115  ·  view source on GitHub ↗
(self, dataset, batch_size, shuffle=False, drop_last=False, num_workers=4)

Source from the content-addressed store, hash-verified

111
112class Loader():
113 def __init__(self, dataset, batch_size, shuffle=False, drop_last=False, num_workers=4):
114 self.loader = torch.utils.data.DataLoader(dataset, batch_size=batch_size, shuffle=shuffle, drop_last=drop_last, num_workers=num_workers)
115 self.iterator = None
116
117 def __iter__(self):
118 return iter(self.loader)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected