8d43da9a82fd73db14c4cacfa068261d84ea2610,scripts/bert/run_pretraining.py,,,#,383
Before Change
if __name__ == "__main__":
random_seed = random.randint(0, 1000)
nlp.utils.mkdir(args.ckpt_dir)
dataset_name, vocab = args.dataset_name, None
if args.sentencepiece:
logging.info("loading vocab file from sentence piece model: %s", args.sentencepiece)
After Change
args.max_predictions_per_seq)
else:
shuffle = True
logging.info("args.num_buckets: {}, num_workers: {}, rank: {}".format(args.num_buckets,
num_workers,
rank))
data_train = get_dataset_fn(args.data, batch_size,
len(ctxs), shuffle, args.num_buckets, vocab,
num_parts=num_workers, part_idx=rank,
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: dmlc/gluon-nlp
Commit Name: 8d43da9a82fd73db14c4cacfa068261d84ea2610
Time: 2020-02-02
Author: szhengac@users.noreply.github.com
File Name: scripts/bert/run_pretraining.py
Class Name:
Method Name:
Project Name: deepmipt/DeepPavlov
Commit Name: 286a864220a00732d382a75051e11877acf13c3f
Time: 2018-01-24
Author: ol.gure@gmail.com
File Name: deeppavlov/core/models/keras_model.py
Class Name: KerasModel
Method Name: save
Project Name: theislab/scanpy
Commit Name: d603299e387628f3878ff0b783698494f87c602c
Time: 2019-03-29
Author: ivirshup@gmail.com
File Name: scanpy/datasets/_expression_atlas.py
Class Name:
Method Name: expression_atlas