Skip to content

Commit f815b2a

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

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
@@ -1144,7 +1144,7 @@ function (l::GMMConv)(g::GNNGraph, x::AbstractMatrix, u::AbstractMatrix)
11441144
mu = reshape(l.mu, (l.e_dim, l.K, 1))
11451145

11461146
e = -0.5*(u.-mu).^2
1147-
e = e .* ((reshape(l.sigma_inv, (l.e_dim, l.K, 1)).^2) )
1147+
e = e .* reshape(l.sigma_inv, (l.e_dim, l.K, 1))
11481148
e = exp.(sum(e, dims = 1 )) # (1, K, num_edge)
11491149

11501150
xj = reshape(l.dense_x(x), (l.ch[2],l.K,:)) # (out, K, num_nodes)

0 commit comments

Comments
 (0)