Skip to content

Commit

Permalink
KAG is modified
Browse files Browse the repository at this point in the history
  • Loading branch information
cometscome committed Jun 3, 2024
1 parent 5a100ae commit 4c09ee3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/KAGnet.jl
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function ChainRulesCore.rrule(::typeof(rdf_foward), x, num_grids, grids, denomin
for n = 1:length(ybar)
dLdGdx .+= dy[n] .* ybar[n]
end
return sbar, dLdGdx, sbar, sbar, sbar
return sbar, dLdGdx, sbar, -dLdGdx, sbar
end
return y, pullback
end
Expand Down

0 comments on commit 4c09ee3

Please sign in to comment.