667d856a2fc27732d745cd7d926e9739ad12995c,example/ctr/ctr/train.py,,train,#,183

Before Change


            if exit_code != 0:
                raise Exception("The download command failed, please check the network settings")
            logger.info("run trainer")
            train_prog = t.get_trainer_program()
            train_loop(args, train_prog, py_reader, loss, auc_var, batch_auc_var,
                       args.trainers, args.trainer_id)
        else:
            raise ValueError(
                "PADDLE_TRAINING_ROLE environment variable must be either TRAINER or PSERVER"
            )

After Change


            exe.run(prog)
        elif args.role == "trainer" or args.role == "TRAINER":
            logger.info("run trainer")
            train_prog = t.get_trainer_program()
            train_loop(args, train_prog, py_reader, loss, auc_var, batch_auc_var,
                       args.trainers, args.trainer_id)
        else:
            raise ValueError(
                "PADDLE_TRAINING_ROLE environment variable must be either TRAINER or PSERVER"
            )
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: PaddlePaddle/edl
Commit Name: 667d856a2fc27732d745cd7d926e9739ad12995c
Time: 2019-09-28
Author: wangjiawei04@baidu.com
File Name: example/ctr/ctr/train.py
Class Name:
Method Name: train


Project Name: tensorflow/models
Commit Name: e0dade52dc470e8696556760516b65a5864e1f6d
Time: 2020-06-24
Author: rathodv@google.com
File Name: research/object_detection/model_lib_tf2_test.py
Class Name: ModelCheckpointTest
Method Name: test_checkpoint_max_to_keep


Project Name: tensorflow/models
Commit Name: e0dade52dc470e8696556760516b65a5864e1f6d
Time: 2020-06-24
Author: rathodv@google.com
File Name: research/object_detection/model_lib_tf2_test.py
Class Name: ModelLibTest
Method Name: test_train_loop_then_eval_loop


Project Name: PaddlePaddle/edl
Commit Name: 06922d860d176d94d429e832c5754227943337fa
Time: 2019-03-19
Author: wopeizl@163.com
File Name: example/ctr/ctr/train.py
Class Name:
Method Name: train