844a5af831a66505f3ee92dbea51f052a4f5262d,rl_coach/rollout_worker.py,,main,#,73

Before Change



    if args.memory_backend_params:
        args.memory_backend_params = json.loads(args.memory_backend_params)
        if "run_type" not in args.memory_backend_params:
            args.memory_backend_params["run_type"] = "worker"
        graph_manager.agent_params.memory.register_var("memory_backend_params", construct_memory_params(args.memory_backend_params))
    rollout_worker(
        graph_manager=graph_manager,
        checkpoint_dir=args.checkpoint_dir,

After Change


        graph_manager.agent_params.memory.register_var("memory_backend_params", construct_memory_params(args.memory_backend_params))

    if args.data_store_params:
        data_store_params = construct_data_store_params(json.loads(args.data_store_params))
        data_store_params.checkpoint_dir = args.checkpoint_dir
        graph_manager.data_store_params = data_store_params
        data_store = get_data_store(data_store_params)
        wait_for_checkpoint(checkpoint_dir=args.checkpoint_dir, data_store=data_store)
        // thread = Thread(target = data_store_ckpt_load, args = [data_store])
        // thread.start()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: NervanaSystems/coach
Commit Name: 844a5af831a66505f3ee92dbea51f052a4f5262d
Time: 2018-10-23
Author: balaji.warft@gmail.com
File Name: rl_coach/rollout_worker.py
Class Name:
Method Name: main


Project Name: NervanaSystems/coach
Commit Name: 844a5af831a66505f3ee92dbea51f052a4f5262d
Time: 2018-10-23
Author: balaji.warft@gmail.com
File Name: rl_coach/training_worker.py
Class Name:
Method Name: main


Project Name: comic/grand-challenge.org
Commit Name: 28935ea4d7796ada4ad387e79c4357b21c5b9ad6
Time: 2020-03-26
Author: 57257130+MikeOverkamp-diag@users.noreply.github.com
File Name: app/grandchallenge/reader_studies/models.py
Class Name: ReaderStudy
Method Name: add_ground_truth