Update models.py

This commit is contained in:
AntreasAntoniou 2017-11-24 16:25:59 +00:00 committed by GitHub
parent 309f96b8f5
commit 1d2aabc2b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -80,7 +80,7 @@ class MultipleLayerModel(object):
"""A list of all of the parameters of the model.""" """A list of all of the parameters of the model."""
params = [] params = []
for layer in self.layers: for layer in self.layers:
if isinstance(layer, LayerWithParameters): if isinstance(layer, LayerWithParameters) or isinstance(layer, StochasticLayerWithParameters):
params += layer.params params += layer.params
return params return params