LayerState
LayerState()
LayerState
A LayerState
is a container to store tf.Variable
, Layer
, or other tensors to be shared between layers.
Methods:
.variables
.variables()
variables
returns a list of all variables in the layer state
Returns
- variables (
List[tf.Variable]
) : a list of all variables in the layer state
.var_dict
.var_dict()
var_dict
gets all variables in the layer state as a dict
from a hashable
reference (variable.ref()
) object to
tf.Variable
.
Returns
- var_dict (
Dict[Hashable,Variable]
) : a dictionary with all the variables in the current layer state.