Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rbSparky committed Aug 8, 2024
1 parent df4b2d2 commit b41b1e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
4 changes: 2 additions & 2 deletions GNNLux/test/layers/conv_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@

(x_new, e_new), st_new = l(g, x, ps, st)

#@test size(x_new) == (out_dims, g.num_nodes)
#@test size(e_new) == (out_dims, g.num_edges)
@test size(x_new) == (out_dims, g.num_nodes)
@test size(e_new) == (out_dims, g.num_edges)
end
end
7 changes: 1 addition & 6 deletions GNNlib/src/layers/conv.jl
Original file line number Diff line number Diff line change
Expand Up @@ -357,12 +357,7 @@ end

function megnet_conv(l, g::GNNGraph, x::AbstractMatrix, e::Union{AbstractMatrix, Nothing}=nothing)
check_num_nodes(g, x)

if isnothing(e)
num_edges = g.num_edges
e = zeros(eltype(x), 0, num_edges)
end


ē = apply_edges(g, xi = x, xj = x, e = e) do xi, xj, e
l.ϕe(vcat(xi, xj, e))
end
Expand Down

0 comments on commit b41b1e0

Please sign in to comment.