Skip to content

Commit efcf608

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

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
w = reshape(e, (ein, 1, num_edges))
11501150
mu = reshape(l.mu, (ein, l.K, 1))
11511151

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

0 commit comments

Comments
 (0)