Skip to content

Commit 434e1ae

Browse files
committed
Fixes
1 parent eb9be48 commit 434e1ae

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

docs/src/manual/conv.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ Reference: [How Powerful are Graph Neural Networks?](https://arxiv.org/pdf/1810.
127127
\textbf{x}_i' = \textbf{x}_i + \sum_{j \in \mathcal{N}(i)} \sigma\left( \textbf{z}_{i,j} \textbf{W}_f + \textbf{b}_f \right) \odot \text{softplus}\left(\textbf{z}_{i,j} \textbf{W}_s + \textbf{b}_s \right)
128128
```
129129

130-
where ``\textbf{z}_{i,j} = [\textbf{x}_i, \textbf{x}_j}, \textbf{e}_{i,j}]`` denotes the concatenation of node features, neighboring node features, and edge features.
130+
where ``\textbf{z}_{i,j} = [\textbf{x}_i, \textbf{x}_j}, \textbf{e}_{i,j}]`` denotes the concatenation of node features, neighboring node features, and edge features. The operation ``\odot`` represents elementwise multiplication, and ``\sigma`` denotes the sigmoid function.
131131

132132
```@docs
133133
CGConv

src/layers/conv.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -499,10 +499,10 @@ end
499499
(l::CGConv)(fg::FeaturedGraph) = FeaturedGraph(fg, nf=l(fg, node_feature(fg),
500500
edge_feature(fg)),
501501
ef=edge_feature(fg))
502-
(l::CGConv)(M::AbstractMatrix; edge=false) =
503-
if !edge
504-
l(l.fg, M, edge_feature(l.fg))
505-
else
502+
(l::CGConv)(M::AbstractMatrix; as_edge=false) =
503+
if as_edge
506504
l(l.fg, node_feature(l.fg), M)
505+
else
506+
l(l.fg, M, edge_feature(l.fg))
507507
end
508508
(l::CGConv)(X::AbstractMatrix, E::AbstractMatrix) = l(l.fg, X, E)

0 commit comments

Comments
 (0)