We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
_get_state
StatefulLuxLayer
1 parent 9e42c8c commit 012b23cCopy full SHA for 012b23c
GNNLux/src/layers/conv.jl
@@ -1,8 +1,8 @@
1
_getbias(ps) = hasproperty(ps, :bias) ? getproperty(ps, :bias) : false
2
_getstate(st, name) = hasproperty(st, name) ? getproperty(st, name) : NamedTuple()
3
-_getstate(s::StatefulLuxLayer{true}) = s.st
+_getstate(s::StatefulLuxLayer{Val{true}}) = s.st
4
_getstate(s::StatefulLuxLayer{Static.True}) = s.st
5
-_getstate(s::StatefulLuxLayer{false}) = s.st_any
+_getstate(s::StatefulLuxLayer{Val{false}}) = s.st_any
6
_getstate(s::StatefulLuxLayer{Static.False}) = s.st_any
7
8
@doc raw"""
0 commit comments