Skip to content

Commit

Permalink
fix doc
Browse files Browse the repository at this point in the history
  • Loading branch information
rusty1s committed Jun 29, 2019
1 parent 57a8993 commit 3bbfe02
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions torch_geometric/nn/conv/gmm_conv.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ class GMMConv(MessagePassing):
<https://arxiv.org/abs/1611.08402>`_ paper
.. math::
\mathbf{x}^{\prime}_i =
\sum_{j \in \mathcal{N}(i) \cup \{ i \}} \frac{1}{K} \sum_{k=1}^K
\mathbf{x}^{\prime}_i = \frac{1}{|\mathcal{N}(i)|}
\sum_{j \in \mathcal{N}(i) \frac{1}{K} \sum_{k=1}^K
\mathbf{w}_k(\mathbf{e}_{i,j}) \odot \mathbf{\Theta}_k \mathbf{x}_j,
where
Expand Down
3 changes: 3 additions & 0 deletions torch_geometric/nn/pool/sag_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@ class SAGPooling(torch.nn.Module):
.. math::
\mathbf{y} &= \textrm{GNN}(\mathbf{X}, \mathbf{A})
\mathbf{i} &= \mathrm{top}_k(\mathbf{y})
\mathbf{X}^{\prime} &= (\mathbf{X} \odot
\mathrm{tanh}(\mathbf{y}))_{\mathbf{i}}
\mathbf{A}^{\prime} &= \mathbf{A}_{\mathbf{i},\mathbf{i}},
where nodes are dropped based on a learnable projection score
Expand Down

0 comments on commit 3bbfe02

Please sign in to comment.