46583778249faa446795ef8a4e57eb12bfd5d5bb,scripts/bert/run_pretraining.py,,,#,426

Before Change



    model, nsp_loss, mlm_loss, vocabulary = get_model(ctx)

    lower = "uncased" in args.dataset_name
    tokenizer = BERTTokenizer(vocabulary, lower=lower)
    store = mx.kv.create(args.kvstore)

    if args.ckpt_dir:

After Change



    if not args.eval_only:
        if args.data:
            logging.info("Using training data at {}".format(args.data))
            data_train = get_dataset(args.data, args.batch_size, len(ctx), True, store)
            train(data_train, model, nsp_loss, mlm_loss, len(vocabulary), ctx, store)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: dmlc/gluon-nlp
Commit Name: 46583778249faa446795ef8a4e57eb12bfd5d5bb
Time: 2019-04-02
Author: Deseaus@users.noreply.github.com
File Name: scripts/bert/run_pretraining.py
Class Name:
Method Name:


Project Name: NifTK/NiftyNet
Commit Name: d77955ba3cbf7c83b3c3d2e13a6709fcefe17a5d
Time: 2017-08-22
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/utilities/user_parameters_parser.py
Class Name:
Method Name: run


Project Name: tensorlayer/tensorlayer
Commit Name: e821d856697ca29141b94a8feaa6435cae2e02e1
Time: 2018-05-06
Author: github-bot@pyup.io
File Name: tensorlayer/__init__.py
Class Name:
Method Name: