Skip to content

Commit 082c232

Browse files
committed
Fix _get_state function for StatefulLuxLayers
1 parent 9e42c8c commit 082c232

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

GNNLux/src/layers/conv.jl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
_getbias(ps) = hasproperty(ps, :bias) ? getproperty(ps, :bias) : false
22
_getstate(st, name) = hasproperty(st, name) ? getproperty(st, name) : NamedTuple()
3-
_getstate(s::StatefulLuxLayer{true}) = s.st
4-
_getstate(s::StatefulLuxLayer{Static.True}) = s.st
5-
_getstate(s::StatefulLuxLayer{false}) = s.st_any
6-
_getstate(s::StatefulLuxLayer{Static.False}) = s.st_any
3+
_getstate(s::StatefulLuxLayer) = LuxCore.get_state(s)
74

85
@doc raw"""
96
GCNConv(in => out, σ=identity; [init_weight, init_bias, use_bias, add_self_loops, use_edge_weight])

0 commit comments

Comments
 (0)