aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/keras/initializers_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/python/keras/initializers_test.py')
-rw-r--r--tensorflow/python/keras/initializers_test.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/tensorflow/python/keras/initializers_test.py b/tensorflow/python/keras/initializers_test.py
index c519e194bd..51725e03f2 100644
--- a/tensorflow/python/keras/initializers_test.py
+++ b/tensorflow/python/keras/initializers_test.py
@@ -31,16 +31,6 @@ class KerasInitializersTest(test.TestCase):
target_max=None, target_min=None):
variable = keras.backend.variable(init(shape))
output = keras.backend.get_value(variable)
- lim = 3e-2
- if target_std is not None:
- self.assertGreater(lim, abs(output.std() - target_std))
- if target_mean is not None:
- self.assertGreater(lim, abs(output.mean() - target_mean))
- if target_max is not None:
- self.assertGreater(lim, abs(output.max() - target_max))
- if target_min is not None:
- self.assertGreater(lim, abs(output.min() - target_min))
-
# Test serialization (assumes deterministic behavior).
config = init.get_config()
reconstructed_init = init.__class__.from_config(config)