MCPcopy Create free account
hub / github.com/PyGCL/PyGCL / __call__

Method __call__

GCL/models/samplers.py:10–14  ·  view source on GitHub ↗
(self, anchor, sample, *args, **kwargs)

Source from the content-addressed store, hash-verified

8 self.intraview_negs = intraview_negs
9
10 def __call__(self, anchor, sample, *args, **kwargs):
11 ret = self.sample(anchor, sample, *args, **kwargs)
12 if self.intraview_negs:
13 ret = self.add_intraview_negs(*ret)
14 return ret
15
16 @abstractmethod
17 def sample(self, anchor, sample, *args, **kwargs):

Callers

nothing calls this directly

Calls 2

sampleMethod · 0.95
add_intraview_negsMethod · 0.95

Tested by

no test coverage detected