Skip to content

Commit c3ed635

Browse files
cleanup
1 parent 3484489 commit c3ed635

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/layers/pool.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ where ``V`` is the set of nodes of the input graph and
1414
the type of aggregation represented by ``\square`` is selected by the `aggr` argument.
1515
Commonly used aggregations are `mean`, `max`, and `+`.
1616
17+
See also [`reduce_nodes`](@ref).
18+
19+
# Examples
1720
```julia
1821
using Flux, GraphNeuralNetworks, LightGraphs
1922
@@ -34,7 +37,7 @@ struct GlobalPool{F} <: GNNLayer
3437
end
3538

3639
function (l::GlobalPool)(g::GNNGraph, x::AbstractArray)
37-
return reduce_nodes(g, x, l.aggr)
40+
return reduce_nodes(l.aggr, g, x)
3841
end
3942

4043
"""

0 commit comments

Comments
 (0)