MCPcopy Create free account
hub / github.com/GeWu-Lab/AnyTouch2 / __init__

Method __init__

util/sampler.py:7–8  ·  view source on GitHub ↗
(self, dataset, num_replicas=None, rank=None, shuffle=True, drop_last: bool = False)

Source from the content-addressed store, hash-verified

5
6class CustomDistributedSampler(DistributedSampler):
7 def __init__(self, dataset, num_replicas=None, rank=None, shuffle=True, drop_last: bool = False):
8 super().__init__(dataset, num_replicas=num_replicas, rank=rank, shuffle=shuffle, drop_last=drop_last)
9
10
11 def __iter__(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected