MCPcopy
hub / github.com/dmlc/dgl / sample

Method sample

python/dgl/dataloading/base.py:182–192  ·  view source on GitHub ↗

Abstract sample method. Parameters ---------- g : DGLGraph The graph. indices : object Any object representing the indices selected in the current minibatch.

(self, g, indices)

Source from the content-addressed store, hash-verified

180 """
181
182 def sample(self, g, indices):
183 """Abstract sample method.
184
185 Parameters
186 ----------
187 g : DGLGraph
188 The graph.
189 indices : object
190 Any object representing the indices selected in the current minibatch.
191 """
192 raise NotImplementedError
193
194
195class BlockSampler(Sampler):

Callers 9

sampleMethod · 0.45
__call__Method · 0.45
__call__Method · 0.45
__call__Method · 0.45
test_sample_rowwiseFunction · 0.45
test_sample_columnwiseFunction · 0.45
forwardMethod · 0.45
forwardMethod · 0.45
forwardMethod · 0.45

Calls

no outgoing calls

Tested by 2

test_sample_rowwiseFunction · 0.36
test_sample_columnwiseFunction · 0.36