Skip to content

Commit

Permalink
naming
Browse files Browse the repository at this point in the history
  • Loading branch information
CarloLucibello committed Sep 14, 2024
1 parent e135a3a commit 099c9eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions GNNLux/src/layers/temporalconv.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ function (r::StatefulRecurrentCell)(g, x::AbstractMatrix, ps, st::NamedTuple)
end

function (r::StatefulRecurrentCell)(g, x::AbstractVector, ps, st::NamedTuple)
st, carry = st.cell, st.carry
stcell, carry = st.cell, st.carry
for xᵢ in x
(out, carry), st = applyrecurrentcell(r.cell, g, xᵢ, ps.cell, st, carry)
(out, carry), stcell = applyrecurrentcell(r.cell, g, xᵢ, ps.cell, stcell, carry)
end
return out, (; cell=st, carry)
return out, (; cell=stcell, carry)
end

function applyrecurrentcell(l, g, x, ps, st, carry)
Expand Down

0 comments on commit 099c9eb

Please sign in to comment.