63697ec5f69a9e8f422841c03ca5f44c5c5ebc3a,src/sdk/pynni/tests/test_assessor.py,AssessorTestCase,test_assessor,#AssessorTestCase#,64

Before Change



        assessor = NaiveAssessor()
        dispatcher = MsgDispatcher(None, assessor)
        try:
            dispatcher.run()
        except Exception as e:
            self.assertIs(type(e), AssertionError)
            self.assertEqual(e.args[0], "Unsupported command: CommandType.NewTrialJob")

        self.assertEqual(_trials, ["A", "B", "A"])
        self.assertEqual(_end_trials, [("A", False), ("B", True)])

        _reverse_io()

After Change


        nni.msg_dispatcher_base._worker_fast_exit_on_terminate = False

        dispatcher.run()
        e = dispatcher.worker_exceptions[0]
        self.assertIs(type(e), AssertionError)
        self.assertEqual(e.args[0], "Unsupported command: CommandType.NewTrialJob")

        self.assertEqual(_trials, ["A", "B", "A"])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: microsoft/nni
Commit Name: 63697ec5f69a9e8f422841c03ca5f44c5c5ebc3a
Time: 2019-03-22
Author: 38930155+chicm-ms@users.noreply.github.com
File Name: src/sdk/pynni/tests/test_assessor.py
Class Name: AssessorTestCase
Method Name: test_assessor


Project Name: NervanaSystems/coach
Commit Name: 125c7ee38d413e4709271292c473f5930196b137
Time: 2017-12-19
Author: 30383381+itaicaspi-intel@users.noreply.github.com
File Name: environments/gym_environment_wrapper.py
Class Name: GymEnvironmentWrapper
Method Name: __init__


Project Name: microsoft/nni
Commit Name: 63697ec5f69a9e8f422841c03ca5f44c5c5ebc3a
Time: 2019-03-22
Author: 38930155+chicm-ms@users.noreply.github.com
File Name: src/sdk/pynni/tests/test_tuner.py
Class Name: TunerTestCase
Method Name: test_tuner