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

Method __init__

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

Source from the content-addressed store, hash-verified

105
106class Loader():
107 def __init__(self, dataset, batch_size, shuffle=False, drop_last=False, num_workers=4):
108 self.loader = torch.utils.data.DataLoader(dataset, batch_size=batch_size, shuffle=shuffle, drop_last=drop_last, num_workers=num_workers)
109 self.iterator = None
110
111 def __iter__(self):
112 return iter(self.loader)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected