forked from dmlc/dgl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix doc * poke ci * poke ci * upd * fix doc * upd * add title for all nn * upd
- Loading branch information
Showing
8 changed files
with
209 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,3 +18,4 @@ API Reference | |
subgraph | ||
graph_store | ||
nodeflow | ||
random |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,96 @@ | ||
.. _apinn-mxnet: | ||
|
||
dgl.nn.mxnet | ||
============ | ||
NN Modules (MXNet) | ||
=================== | ||
|
||
dgl.nn.mxnet.conv | ||
----------------- | ||
.. contents:: Contents | ||
:local: | ||
|
||
We welcome your contribution! If you want a model to be implemented in DGL as a NN module, | ||
please `create an issue <https://github.com/dmlc/dgl/issues>`_ started with "[Feature Request] NN Module XXXModel". | ||
|
||
If you want to contribute a NN module, please `create a pull request <https://github.com/dmlc/dgl/pulls>`_ started | ||
with "[NN] XXXModel in MXNet NN Modules" and our team member would review this PR. | ||
|
||
Conv Layers | ||
---------------------------------------- | ||
|
||
.. automodule:: dgl.nn.mxnet.conv | ||
|
||
GraphConv | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. autoclass:: dgl.nn.mxnet.conv.GraphConv | ||
:members: weight, bias, forward | ||
:show-inheritance: | ||
|
||
RelGraphConv | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. autoclass:: dgl.nn.mxnet.conv.RelGraphConv | ||
:members: forward | ||
:show-inheritance: | ||
|
||
TAGConv | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. autoclass:: dgl.nn.mxnet.conv.TAGConv | ||
:members: forward | ||
:show-inheritance: | ||
|
||
dgl.nn.mxnet.glob | ||
----------------- | ||
Global Pooling Layers | ||
---------------------------------------- | ||
|
||
.. automodule:: dgl.nn.mxnet.glob | ||
|
||
SumPooling | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. autoclass:: dgl.nn.mxnet.glob.SumPooling | ||
:members: | ||
:show-inheritance: | ||
|
||
AvgPooling | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. autoclass:: dgl.nn.mxnet.glob.AvgPooling | ||
:members: | ||
:show-inheritance: | ||
|
||
MaxPooling | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. autoclass:: dgl.nn.mxnet.glob.MaxPooling | ||
:members: | ||
:show-inheritance: | ||
|
||
SortPooling | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. autoclass:: dgl.nn.mxnet.glob.SortPooling | ||
:members: | ||
:show-inheritance: | ||
|
||
dgl.nn.mxnet.softmax | ||
-------------------- | ||
GlobalAttentionPooling | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. autoclass:: dgl.nn.mxnet.glob.GlobalAttentionPooling | ||
:members: | ||
:show-inheritance: | ||
|
||
Set2Set | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. autoclass:: dgl.nn.mxnet.glob.Set2Set | ||
:members: | ||
:show-inheritance: | ||
|
||
|
||
Utility Modules | ||
---------------------------------------- | ||
|
||
Edge Softmax | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. automodule:: dgl.nn.mxnet.softmax | ||
:members: edge_softmax |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,132 +1,226 @@ | ||
.. _apinn-pytorch: | ||
|
||
dgl.nn.pytorch | ||
============== | ||
NN Modules (PyTorch) | ||
==================== | ||
|
||
dgl.nn.pytorch.conv | ||
------------------- | ||
.. contents:: Contents | ||
:local: | ||
|
||
We welcome your contribution! If you want a model to be implemented in DGL as a NN module, | ||
please `create an issue <https://github.com/dmlc/dgl/issues>`_ started with "[Feature Request] NN Module XXXModel". | ||
|
||
If you want to contribute a NN module, please `create a pull request <https://github.com/dmlc/dgl/pulls>`_ started | ||
with "[NN] XXXModel in PyTorch NN Modules" and our team member would review this PR. | ||
|
||
Conv Layers | ||
---------------------------------------- | ||
|
||
.. automodule:: dgl.nn.pytorch.conv | ||
|
||
GraphConv | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. autoclass:: dgl.nn.pytorch.conv.GraphConv | ||
:members: weight, bias, forward, reset_parameters | ||
:show-inheritance: | ||
|
||
RelGraphConv | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. autoclass:: dgl.nn.pytorch.conv.RelGraphConv | ||
:members: forward | ||
:show-inheritance: | ||
|
||
TAGConv | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. autoclass:: dgl.nn.pytorch.conv.TAGConv | ||
:members: forward | ||
:show-inheritance: | ||
|
||
GATConv | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. autoclass:: dgl.nn.pytorch.conv.GATConv | ||
:members: forward | ||
:show-inheritance: | ||
|
||
EdgeConv | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. autoclass:: dgl.nn.pytorch.conv.EdgeConv | ||
:members: forward | ||
:show-inheritance: | ||
|
||
SAGEConv | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. autoclass:: dgl.nn.pytorch.conv.SAGEConv | ||
:members: forward | ||
:show-inheritance: | ||
|
||
SGConv | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. autoclass:: dgl.nn.pytorch.conv.SGConv | ||
:members: forward | ||
:show-inheritance: | ||
|
||
APPNPConv | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. autoclass:: dgl.nn.pytorch.conv.APPNPConv | ||
:members: forward | ||
:show-inheritance: | ||
|
||
GINConv | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. autoclass:: dgl.nn.pytorch.conv.GINConv | ||
:members: forward | ||
:show-inheritance: | ||
|
||
GatedGraphConv | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. autoclass:: dgl.nn.pytorch.conv.GatedGraphConv | ||
:members: forward | ||
:show-inheritance: | ||
|
||
GMMConv | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. autoclass:: dgl.nn.pytorch.conv.GMMConv | ||
:members: forward | ||
:show-inheritance: | ||
|
||
ChebConv | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. autoclass:: dgl.nn.pytorch.conv.ChebConv | ||
:members: forward | ||
:show-inheritance: | ||
|
||
AGNNConv | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. autoclass:: dgl.nn.pytorch.conv.AGNNConv | ||
:members: forward | ||
:show-inheritance: | ||
|
||
NNConv | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. autoclass:: dgl.nn.pytorch.conv.NNConv | ||
:members: forward | ||
:show-inheritance: | ||
|
||
Dense Conv Layers | ||
---------------------------------------- | ||
|
||
DenseGraphConv | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. autoclass:: dgl.nn.pytorch.conv.DenseGraphConv | ||
:members: forward | ||
:show-inheritance: | ||
|
||
DenseSAGEConv | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. autoclass:: dgl.nn.pytorch.conv.DenseSAGEConv | ||
:members: forward | ||
:show-inheritance: | ||
|
||
DenseChebConv | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. autoclass:: dgl.nn.pytorch.conv.DenseChebConv | ||
:members: forward | ||
:show-inheritance: | ||
|
||
Global Pooling Layers | ||
---------------------------------------- | ||
|
||
dgl.nn.pytorch.glob | ||
------------------- | ||
.. automodule:: dgl.nn.pytorch.glob | ||
|
||
SumPooling | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. autoclass:: dgl.nn.pytorch.glob.SumPooling | ||
:members: | ||
:show-inheritance: | ||
|
||
AvgPooling | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. autoclass:: dgl.nn.pytorch.glob.AvgPooling | ||
:members: | ||
:show-inheritance: | ||
|
||
MaxPooling | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. autoclass:: dgl.nn.pytorch.glob.MaxPooling | ||
:members: | ||
:show-inheritance: | ||
|
||
SortPooling | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. autoclass:: dgl.nn.pytorch.glob.SortPooling | ||
:members: | ||
:show-inheritance: | ||
|
||
GlobalAttentionPooling | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. autoclass:: dgl.nn.pytorch.glob.GlobalAttentionPooling | ||
:members: | ||
:show-inheritance: | ||
|
||
Set2Set | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. autoclass:: dgl.nn.pytorch.glob.Set2Set | ||
:members: forward | ||
:show-inheritance: | ||
|
||
SetTransformerEncoder | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. autoclass:: dgl.nn.pytorch.glob.SetTransformerEncoder | ||
:members: | ||
:show-inheritance: | ||
|
||
SetTransformerDecoder | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. autoclass:: dgl.nn.pytorch.glob.SetTransformerDecoder | ||
:members: | ||
:show-inheritance: | ||
|
||
Utility Modules | ||
---------------------------------------- | ||
|
||
dgl.nn.pytorch.softmax | ||
---------------------- | ||
|
||
.. automodule:: dgl.nn.pytorch.softmax | ||
:members: edge_softmax | ||
|
||
dgl.nn.pytorch.factory | ||
---------------------- | ||
|
||
.. automodule:: dgl.nn.pytorch.conv | ||
KNNGraph | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. autoclass:: dgl.nn.pytorch.factory.KNNGraph | ||
:members: | ||
:show-inheritance: | ||
|
||
SegmentedKNNGraph | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. autoclass:: dgl.nn.pytorch.factory.SegmentedKNNGraph | ||
:members: | ||
:show-inheritance: | ||
|
||
Edge Softmax | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. automodule:: dgl.nn.pytorch.softmax | ||
:members: edge_softmax | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
.. _apinn: | ||
|
||
dgl.nn | ||
====== | ||
NN Modules | ||
========== | ||
|
||
.. automodule:: dgl.nn | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.