Skip to content

Commit 71f5455

Browse files
committed
Changed output type to be same as edge_weight
1 parent 4fed7e8 commit 71f5455

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/layers/conv.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1230,8 +1230,8 @@ function EdgeWeightNorm(norm_both::Bool = true,
12301230
EdgeWeightNorm(norm_both, eps)
12311231
end
12321232

1233-
function (l::EdgeWeightNorm)(g::GNNGraph, edge_weight::AbstractVector)
1234-
norm_val = Vector{Float64}()
1233+
function (l::EdgeWeightNorm)(g::GNNGraph, edge_weight::T) where T <: AbstractVector
1234+
norm_val = T()
12351235
edge_in, edge_out = edge_index(g)
12361236

12371237
dg_in = degree(g; dir = :in, edge_weight)

0 commit comments

Comments
 (0)