6955fab0f4f0a38ead24cec84152d82769a0cfa2,scripts/bert/run_pretraining_hvd.py,,,#,248
Before Change
get_dataset_fn = get_pretrain_data_npz
if args.cased:
raise UserWarning("argument cased is valid only when --raw is set")
if args.max_seq_length:
raise UserWarning("argument max_seq_length is valid only when --raw is set")
if args.short_seq_prob:
raise UserWarning("argument short_seq_prob is valid only when --raw is set")
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 "
After Change
else:
tokenizer = nlp.data.BERTTokenizer(vocab=vocab, lower=not args.cased)
cache_dir = os.path.join(args.ckpt_dir, "data_eval_cache")
cache_file = os.path.join(cache_dir, "part-000.npz")
nlp.utils.mkdir(cache_dir)
// generate dev dataset from the raw text if needed
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
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: ray-project/ray
Commit Name: 908c0c630a6c7c6e35b7bb0e172d41372bfb309d
Time: 2020-07-22
Author: maximsmol@gmail.com
File Name: python/ray/autoscaler/command_runner.py
Class Name: SSHCommandRunner
Method Name: run
Project Name: dmlc/gluon-cv
Commit Name: fdd55d36c05c747643fc98430a7f9b787b6cec16
Time: 2019-08-29
Author: yizhu59@gmail.com
File Name: gluoncv/data/kinetics400/classification.py
Class Name: Kinetics400
Method Name: _TSN_RGB