Update models.py
This commit is contained in:
parent
309f96b8f5
commit
1d2aabc2b3
@ -80,7 +80,7 @@ class MultipleLayerModel(object):
|
||||
"""A list of all of the parameters of the model."""
|
||||
params = []
|
||||
for layer in self.layers:
|
||||
if isinstance(layer, LayerWithParameters):
|
||||
if isinstance(layer, LayerWithParameters) or isinstance(layer, StochasticLayerWithParameters):
|
||||
params += layer.params
|
||||
return params
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user