Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rbSparky committed Mar 19, 2024
1 parent e71bc36 commit 7b2cb5b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/layers/conv.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1691,13 +1691,13 @@ function (l::TAGConv)(g::GNNGraph, x::AbstractMatrix{T},
# On subsequent iterations, accumulate propagated features
if iter == 1
sum_pow = x
sum_total = l.weight * sum_pow
else
sum_pow += x
sum_pow += x
# Weighted sum of features for each power of adjacency matrix
# This applies the weight matrix to the accumulated sum of propagated features
sum_total += l.weight * sum_pow
end

# Weighted sum of features for each power of adjacency matrix
# This applies the weight matrix to the accumulated sum of propagated features
sum_total += l.weight * sum_pow
end

return (sum_total .+ l.bias)
Expand Down

0 comments on commit 7b2cb5b

Please sign in to comment.