6955fab0f4f0a38ead24cec84152d82769a0cfa2,scripts/bert/run_pretraining_hvd.py,,,#,248

Before Change


            if args.masked_lm_prob:
                raise UserWarning("argument masked_lm_prob is valid only when --raw is set")
            if args.max_predictions_per_seq:
                raise UserWarning("argument max_predictions_per_seq is valid only when "
                                  "--raw is set")
        num_parts = 1 if args.dummy_data_len else num_workers
        part_idx = 0 if args.dummy_data_len else rank
        data_train = get_dataset_fn(args.data, args.batch_size, 1, True,
                                    args.use_avg_len, args.num_buckets,

After Change


        // generate dev dataset from the raw text if needed
        if not args.eval_use_npz:
            data_eval = cache_file
            if not os.path.isfile(cache_file) and rank == 0:
                generate_dev_set(tokenizer, vocab, cache_file, args)

    logging.debug("Random seed set to %d", random_seed)
    mx.random.seed(random_seed)

    if args.data:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: dmlc/gluon-nlp
Commit Name: 6955fab0f4f0a38ead24cec84152d82769a0cfa2
Time: 2019-06-21
Author: linhaibin.eric@gmail.com
File Name: scripts/bert/run_pretraining_hvd.py
Class Name:
Method Name:


Project Name: pantsbuild/pants
Commit Name: 689a05c6590aa7ddd0dcb6cbfd83d9c7fc152adc
Time: 2015-03-05
Author: mateorod9@gmail.com
File Name: src/python/pants/backend/android/distribution/android_distribution.py
Class Name: AndroidDistribution
Method Name: register_android_tool


Project Name: Microsoft/MMdnn
Commit Name: fdeeaff5e452e257bf3a3dd76e25c81304cc4c98
Time: 2020-03-15
Author: linmajia@users.noreply.github.com
File Name: mmdnn/conversion/examples/tensorflow/vis_meta.py
Class Name:
Method Name: _main