b263ab3a2904ee85910623cd770eb6763d81e4a9,tests/application_driver_test.py,ApplicationDriverTest,test_from_latest_file_initialisation,#ApplicationDriverTest#,196

Before Change


                    tf.errors.FailedPreconditionError,
                    "uninitialized value"):
                _ = sess.run(test_tensor)
            test_driver._rand_init_or_restore_vars(sess)
            after_init = sess.run(test_tensor)
            self.assertAllClose(after_init[0], expected_init)
            _ = sess.run(tf.global_variables())

After Change


                    tf.errors.FailedPreconditionError,
                    "uninitialized value"):
                _ = sess.run(test_tensor)
            ModelSaver(**vars(test_driver)).rand_init_or_restore_vars(None)
            after_init = sess.run(test_tensor)
            self.assertAllClose(after_init[0], expected_init)
            _ = sess.run(tf.global_variables())
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: NifTK/NiftyNet
Commit Name: b263ab3a2904ee85910623cd770eb6763d81e4a9
Time: 2018-04-24
Author: wenqi.li@ucl.ac.uk
File Name: tests/application_driver_test.py
Class Name: ApplicationDriverTest
Method Name: test_from_latest_file_initialisation


Project Name: NifTK/NiftyNet
Commit Name: b263ab3a2904ee85910623cd770eb6763d81e4a9
Time: 2018-04-24
Author: wenqi.li@ucl.ac.uk
File Name: tests/application_driver_test.py
Class Name: ApplicationDriverTest
Method Name: test_rand_initialisation


Project Name: NifTK/NiftyNet
Commit Name: b263ab3a2904ee85910623cd770eb6763d81e4a9
Time: 2018-04-24
Author: wenqi.li@ucl.ac.uk
File Name: tests/application_driver_test.py
Class Name: ApplicationDriverTest
Method Name: test_not_found_file_initialisation


Project Name: NifTK/NiftyNet
Commit Name: b263ab3a2904ee85910623cd770eb6763d81e4a9
Time: 2018-04-24
Author: wenqi.li@ucl.ac.uk
File Name: tests/application_driver_test.py
Class Name: ApplicationDriverTest
Method Name: test_from_file_initialisation