MCPcopy Create free account
hub / github.com/TorchSSL/TorchSSL / __init__

Method __init__

datasets/DistributedProxySampler.py:26–28  ·  view source on GitHub ↗
(self, sampler, num_replicas=None, rank=None)

Source from the content-addressed store, hash-verified

24 """
25
26 def __init__(self, sampler, num_replicas=None, rank=None):
27 super(DistributedProxySampler, self).__init__(sampler, num_replicas=num_replicas, rank=rank, shuffle=False)
28 self.sampler = sampler
29
30 def __iter__(self):
31 # deterministically shuffle based on epoch

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected