We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3484489 commit c3ed635Copy full SHA for c3ed635
src/layers/pool.jl
@@ -14,6 +14,9 @@ where ``V`` is the set of nodes of the input graph and
14
the type of aggregation represented by ``\square`` is selected by the `aggr` argument.
15
Commonly used aggregations are `mean`, `max`, and `+`.
16
17
+See also [`reduce_nodes`](@ref).
18
+
19
+# Examples
20
```julia
21
using Flux, GraphNeuralNetworks, LightGraphs
22
@@ -34,7 +37,7 @@ struct GlobalPool{F} <: GNNLayer
34
37
end
35
38
36
39
function (l::GlobalPool)(g::GNNGraph, x::AbstractArray)
- return reduce_nodes(g, x, l.aggr)
40
+ return reduce_nodes(l.aggr, g, x)
41
42
43
"""
0 commit comments