"...en/git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "b91d5ddd1abac40e6988cba9d4538f97d201ef84"
sampler.rst 891 Bytes
Newer Older
1
2
.. apisampler

3
4
5
6
7
8
dgl.contrib.sampling
======================

Module for sampling algorithms on graph. Each algorithm is implemented as a
data loader, which produces sampled subgraphs (called Nodeflow) at each
iteration.
9

10
.. autofunction:: dgl.contrib.sampling.sampler.NeighborSampler
Da Zheng's avatar
Da Zheng committed
11
.. autofunction:: dgl.contrib.sampling.sampler.LayerSampler
Da Zheng's avatar
Da Zheng committed
12
.. autofunction:: dgl.contrib.sampling.sampler.EdgeSampler
Da Zheng's avatar
Da Zheng committed
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40

Distributed sampler
------------------------

.. currentmodule:: dgl.contrib.sampling.dis_sampler
.. autoclass:: SamplerPool

.. autosummary::
    :toctree: ../../generated/

    SamplerPool.start
    SamplerPool.worker

.. autoclass:: SamplerSender

.. autosummary::
    :toctree: ../../generated/

    SamplerSender.send
    SamplerSender.signal

.. autoclass:: SamplerReceiver

.. autosummary::
    :toctree: ../../generated/

    SamplerReceiver.__iter__
    SamplerReceiver.__next__