Skip to content

Commit 012b23c

Browse files
committed
Fix _get_state function for StatefulLuxLayers
1 parent 9e42c8c commit 012b23c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

GNNLux/src/layers/conv.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
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
3+
_getstate(s::StatefulLuxLayer{Val{true}}) = s.st
44
_getstate(s::StatefulLuxLayer{Static.True}) = s.st
5-
_getstate(s::StatefulLuxLayer{false}) = s.st_any
5+
_getstate(s::StatefulLuxLayer{Val{false}}) = s.st_any
66
_getstate(s::StatefulLuxLayer{Static.False}) = s.st_any
77

88
@doc raw"""

0 commit comments

Comments
 (0)