Pass rate and other settings to parent classes

This commit is contained in:
ribx 2017-06-20 16:25:04 +02:00 committed by GitHub
parent 0f17a54d4d
commit 4763aeca85

View File

@ -107,7 +107,7 @@ class Dropout(tf_core_layers.Dropout, Layer):
self.supports_masking = True self.supports_masking = True
# Inheritance call order: # Inheritance call order:
# 1) tf.layers.Dropout, 2) keras.layers.Layer, 3) tf.layers.Layer # 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): def call(self, inputs, training=None):
if training is None: if training is None: