d9027c454d4765e83b52291bc1621bf4cc0508ee,luminoth/train_test.py,TrainTest,testTrainSave,#TrainTest#,127

Before Change


        // This is because of a MonitoredTrainingSession "bug".
        // When ending training it saves a checkpoint as the next step.
        // That causes that we are one step ahead when loading it.
        self.assertEqual(step, 5)


if __name__ == "__main__":
    tf.test.main()

After Change


        )

        // Get tensor from graph and run it in session
        w_tensor = tf.get_default_graph().get_tensor_by_name(
            "mockfasterrcnn/w:0"
        )
        w_numpy = new_session.run(w_tensor)

        // Assert we correctly loaded the weight
        self.assertArrayNear(w_numpy, [2.5, 3.0], err=0.01)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: tryolabs/luminoth
Commit Name: d9027c454d4765e83b52291bc1621bf4cc0508ee
Time: 2018-04-16
Author: joaquin.alori@gmail.com
File Name: luminoth/train_test.py
Class Name: TrainTest
Method Name: testTrainSave


Project Name: GPflow/GPflow
Commit Name: 3878bc7be5c146e8e7367ccc785454f872f3d818
Time: 2017-10-29
Author: art.art.v@gmail.com
File Name: testing/test_transforms.py
Class Name: TransformTests
Method Name: test_logjac


Project Name: asyml/texar
Commit Name: 47c71c0524c7804863f2f4bcffdef5a873d84a55
Time: 2017-10-16
Author: junxianh2@gmail.com
File Name: txtgen/modules/connectors/connectors_test.py
Class Name: TestConnectors
Method Name: test_reparameterized_stochastic_connector


Project Name: ray-project/ray
Commit Name: d9f1874e3489edc915228dcfdae64d5294034464
Time: 2020-10-27
Author: sven@anyscale.io
File Name: rllib/tests/test_rollout_worker.py
Class Name: TestRolloutWorker
Method Name: test_global_vars_update