Skip to content

Commit

Permalink
fix error of gradient over scalar matrix multiplication
Browse files Browse the repository at this point in the history
  • Loading branch information
yuehhua committed Dec 12, 2021
1 parent 3b838d8 commit 21e7f7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layers/conv.jl
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ function (c::ChebConv)(fg::FeaturedGraph, X::AbstractMatrix{T}) where T
Y = view(c.weight,:,:,1) * Z_prev
Y += view(c.weight,:,:,2) * Z
for k = 3:c.k
Z, Z_prev = 2*Z*- Z_prev, Z
Z, Z_prev = 2 .* Z * - Z_prev, Z
Y += view(c.weight,:,:,k) * Z
end
return Y .+ c.bias
Expand Down

0 comments on commit 21e7f7f

Please sign in to comment.