Skip to content

Commit

Permalink
Fix setting of BatchNormalization config. (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
hgaiser authored and 0x00b1 committed Nov 28, 2017
1 parent 2a64eac commit fc3e120
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion keras_resnet/layers/_batch_normalization.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@ def call(self, *args, **kwargs):
return super(BatchNormalization, self).call(training=(not self.freeze), *args, **kwargs)

def get_config(self):
return {'freeze': self.freeze}
config = super(BatchNormalization, self).get_config()
config.update({'freeze': self.freeze})
return config

0 comments on commit fc3e120

Please sign in to comment.