one loose atol_fac for all TF versions.
-from distutils.version import LooseVersion
import unittest
import numpy as np
@@ -30,10 +29,7 @@ class TestMNISTTutorialTF(CleverHansTest):
self.assertGreater(report.train_adv_train_adv_eval, 0.4)
# Check that the tutorial is deterministic (seeded properly)
- if LooseVersion(tf.__version__) >= LooseVersion('1.1.0'):
atol_fac = 3
- else:
- atol_fac = 2
report_2 = mnist_tutorial_tf.mnist_tutorial(**test_dataset_indices)
self.assertClose(report.train_clean_train_clean_eval,
report_2.train_clean_train_clean_eval,
