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 082c232Copy full SHA for 082c232
GNNLux/src/layers/conv.jl
@@ -1,9 +1,6 @@
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
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
+_getstate(s::StatefulLuxLayer) = LuxCore.get_state(s)
7
8
@doc raw"""
9
GCNConv(in => out, σ=identity; [init_weight, init_bias, use_bias, add_self_loops, use_edge_weight])
0 commit comments