Skip to content

Commit 86ed608

Browse files
Update src/layers/conv.jl
Co-authored-by: Carlo Lucibello <[email protected]>
1 parent a5d7c09 commit 86ed608

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/layers/conv.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1149,7 +1149,7 @@ function (l::GMMConv)(g::GNNGraph, x::AbstractMatrix, e::AbstractMatrix)
11491149
mu = reshape(l.mu, (ein, l.K, 1))
11501150

11511151
w = @. ((w - mu)^2) / 2
1152-
w = w .* reshape(l.sigma_inv, (ein, l.K, 1))
1152+
w = w .* reshape(l.sigma_inv.^2, (ein, l.K, 1))
11531153
w = exp.(sum(w, dims = 1 )) # (1, K, num_edge)
11541154

11551155
xj = reshape(l.dense_x(x), (out, l.K, :)) # (out, K, num_nodes)

0 commit comments

Comments
 (0)