518427627be85a805a5ac97c787a0b0bd3489be9,python/ray/tune/tests/test_ray_trial_executor.py,RayTrialExecutorTest,testSavePauseResumeErrorRestore,#RayTrialExecutorTest#,70
Before Change
self.process_trial_save(trial)
// Train
self.trial_executor.continue_training(trial)
trial.last_result = self.trial_executor.fetch_result(trial)
// Pause
self.trial_executor.pause_trial(trial)
self.assertEqual(Trial.PAUSED, trial.status)
self.assertEqual(trial.checkpoint.storage, Checkpoint.MEMORY)
After Change
self.process_trial_save(trial)
// Train
self.trial_executor.continue_training(trial)
trial.last_result = self.trial_executor.fetch_result(trial)[-1]
// Pause
self.trial_executor.pause_trial(trial)
self.assertEqual(Trial.PAUSED, trial.status)
self.assertEqual(trial.checkpoint.storage, Checkpoint.MEMORY)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 6
Instances
Project Name: ray-project/ray
Commit Name: 518427627be85a805a5ac97c787a0b0bd3489be9
Time: 2021-01-12
Author: krfricke@users.noreply.github.com
File Name: python/ray/tune/tests/test_ray_trial_executor.py
Class Name: RayTrialExecutorTest
Method Name: testSavePauseResumeErrorRestore
Project Name: ray-project/ray
Commit Name: 518427627be85a805a5ac97c787a0b0bd3489be9
Time: 2021-01-12
Author: krfricke@users.noreply.github.com
File Name: python/ray/tune/tests/test_ray_trial_executor.py
Class Name: RayTrialExecutorTest
Method Name: testAsyncSave
Project Name: ray-project/ray
Commit Name: 518427627be85a805a5ac97c787a0b0bd3489be9
Time: 2021-01-12
Author: krfricke@users.noreply.github.com
File Name: python/ray/tune/tests/test_ray_trial_executor.py
Class Name: RayTrialExecutorTest
Method Name: process_trial_save
Project Name: ray-project/ray
Commit Name: 518427627be85a805a5ac97c787a0b0bd3489be9
Time: 2021-01-12
Author: krfricke@users.noreply.github.com
File Name: python/ray/tune/tests/test_ray_trial_executor.py
Class Name: RayTrialExecutorTest
Method Name: testSaveRestore