MCPcopy Create free account
hub / github.com/HobbitLong/PyContrast / __call__

Method __call__

pycontrast/datasets/util.py:21–22  ·  view source on GitHub ↗
(self, imgs)

Source from the content-addressed store, hash-verified

19 self.transform = transform
20
21 def __call__(self, imgs):
22 return torch.stack([self.transform(crop) for crop in imgs])
23
24
25class JigsawCrop(object):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected