Skip to content

Commit

Permalink
[NN] Refactor the Code Structure of GT (dmlc#5100)
Browse files Browse the repository at this point in the history
  • Loading branch information
rudongyu authored and DominikaJedynak committed Mar 12, 2024
1 parent d753aa3 commit 696b84d
Show file tree
Hide file tree
Showing 17 changed files with 975 additions and 931 deletions.
2 changes: 1 addition & 1 deletion docs/source/api/python/dgl.rst
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ Operators for generating positional encodings of each node.
:toctree: ../../generated

random_walk_pe
laplacian_pe
lap_pe
double_radius_node_labeling
shortest_dist
svd_pe
Expand Down
15 changes: 15 additions & 0 deletions docs/source/api/python/nn-pytorch.rst
Original file line number Diff line number Diff line change
Expand Up @@ -146,3 +146,18 @@ Network Embedding Modules

~dgl.nn.pytorch.DeepWalk
~dgl.nn.pytorch.MetaPath2Vec

Utility Modules for Graph Transformer
----------------------------------------
.. autosummary::
:toctree: ../../generated/
:nosignatures:
:template: classtemplate.rst

~dgl.nn.pytorch.gt.DegreeEncoder
~dgl.nn.pytorch.gt.LapPosEncoder
~dgl.nn.pytorch.gt.PathEncoder
~dgl.nn.pytorch.gt.SpatialEncoder
~dgl.nn.pytorch.gt.SpatialEncoder3d
~dgl.nn.pytorch.gt.BiasedMHA
~dgl.nn.pytorch.gt.GraphormerLayer
2 changes: 1 addition & 1 deletion docs/source/api/python/transforms.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ dgl.transforms
DropEdge
AddEdge
RandomWalkPE
LaplacianPE
LapPE
FeatMask
RowFeatNormalizer
SIGNDiffusion
Expand Down
10 changes: 2 additions & 8 deletions python/dgl/nn/pytorch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@
from .factory import *
from .hetero import *
from .sparse_emb import NodeEmbedding
from .utils import (
JumpingKnowledge,
LabelPropagation,
LaplacianPosEnc,
Sequential,
WeightBasis,
)
from .utils import JumpingKnowledge, LabelPropagation, Sequential, WeightBasis
from .network_emb import *
from .graph_transformer import *
from .gt import *
Loading

0 comments on commit 696b84d

Please sign in to comment.