Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
Co-authored-by: Carlo Lucibello <[email protected]>
  • Loading branch information
aurorarossi and CarloLucibello authored Aug 19, 2024
1 parent e4b6f80 commit 7d78200
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GNNLux/src/layers/temporalconv.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ function (r::StatefulRecurrentCell)(g, x::AbstractMatrix, ps, st::NamedTuple)
end

function (r::StatefulRecurrentCell)(g, x::AbstractVector, ps, st::NamedTuple)
(out, carry), st = applyrecurrentcell(r.cell, g, first(x), ps, st.cell, st.carry)
for xᵢ in x[(begin + 1):end]
st, carry = st.cell, st.carry
for xᵢ in x
(out, carry), st = applyrecurrentcell(r.cell, g, xᵢ, ps, st, carry)
end
return out, (; cell=st, carry)
Expand Down

0 comments on commit 7d78200

Please sign in to comment.