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

Before Change


if __name__ == "__main__":
    // random seed
    seed = args.seed
    np.random.seed(seed)
    random.seed(seed)
    mx.random.seed(seed)
    logging.debug("Random seed set to %d", seed)

After Change


        nlp.utils.mkdir(cache_dir)

        // 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: keras-team/keras
Commit Name: 403b4fc7a25da5d957b24f1c269103ef6e290bd6
Time: 2016-01-26
Author: udi@benreuven.com
File Name: keras/preprocessing/image.py
Class Name: ImageDataGenerator
Method Name: flow


Project Name: keras-team/keras
Commit Name: 5d0cb109496d46edb6359a50893cab07e9f386ba
Time: 2017-02-28
Author: francois.chollet@gmail.com
File Name: examples/mnist_net2net.py
Class Name:
Method Name: