Skip to content

Commit

Permalink
Fix signature
Browse files Browse the repository at this point in the history
  • Loading branch information
aurorarossi committed Aug 8, 2024
1 parent fbbe84d commit dc39f81
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion GNNLux/src/layers/temporalconv.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
@concrete struct StatefulRecurrentCell <: AbstractExplicitContainerLayer{(:cell,)}
cell <: Union{<:Lux.AbstractRecurrentCell, <:GNNContainerLayer}
end

@concrete struct TGCNCell <: GNNContainerLayer{(:conv, :gru)}
in_dims::Int
out_dims::Int
Expand All @@ -14,7 +18,7 @@ end

LuxCore.outputsize(l::TGCNCell) = (l.out_dims,)

function (l::TGCNCell)(h, g, x)
function (l::TGCNCell)(h, g, x, ps, st)
conv = StatefulLuxLayer{true}(l.conv, ps.conv, _getstate(st, :conv))
gru = StatefulLuxLayer{true}(l.gru, ps.gru, _getstate(st, :gru))
m = (; conv, gru)
Expand Down

0 comments on commit dc39f81

Please sign in to comment.