Skip to content

Commit

Permalink
Merge pull request tensorflow#10850 from ribx/master
Browse files Browse the repository at this point in the history
Pass rate and other settings to parent classes
  • Loading branch information
yifeif authored Jun 20, 2017
2 parents 9e4fa8e + 4763aec commit b7acb6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tensorflow/contrib/keras/python/keras/layers/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def __init__(self, rate, noise_shape=None, seed=None, **kwargs):
self.supports_masking = True
# Inheritance call order:
# 1) tf.layers.Dropout, 2) keras.layers.Layer, 3) tf.layers.Layer
super(Dropout, self).__init__(**kwargs)
super(Dropout, self).__init__(rate=rate, noise_shape=noise_shape, seed=seed, **kwargs)

def call(self, inputs, training=None):
if training is None:
Expand Down

0 comments on commit b7acb6a

Please sign in to comment.