MCPcopy Create free account
hub / github.com/LeapLabTHU/DAT / __init__

Method __init__

data/samplers.py:20–22  ·  view source on GitHub ↗
(self, indices)

Source from the content-addressed store, hash-verified

18 """
19
20 def __init__(self, indices):
21 self.epoch = 0
22 self.indices = indices
23
24 def __iter__(self):
25 return (self.indices[i] for i in torch.randperm(len(self.indices)))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected