cb413bcf7b58223c6c4335f2eaaf3dc53c0b0c53,train.py,,main,#,190

Before Change


    opt.trg_pad_idx = data["vocab"]["trg"].vocab.stoi[Constants.PAD_WORD]

    opt.src_vocab_size = len(data["vocab"]["src"].vocab)
    opt.trg_vocab_size = len(data["vocab"]["trg"].vocab)
    training_data, validation_data = prepare_dataloaders(data, device, opt.batch_size)

    //========= Preparing Model =========//
    if opt.embs_share_weight:

After Change



    if opt.data_pkl:
        training_data, validation_data = prepare_dataloaders(opt, device)
    elif all((opt.train_path, opt.val_path)):
        training_data, validation_data = prepare_dataloaders_from_bpe_files(opt, device)
    else:
        raise

    print(opt)

    transformer = Transformer(
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: jadore801120/attention-is-all-you-need-pytorch
Commit Name: cb413bcf7b58223c6c4335f2eaaf3dc53c0b0c53
Time: 2019-12-05
Author: jadore801120@gmail.com
File Name: train.py
Class Name:
Method Name: main


Project Name: pgmpy/pgmpy
Commit Name: ca25da7c55ba436ab557410d5f2e2e9b557d2840
Time: 2015-03-02
Author: abinash.panda.ece10@itbhu.ac.in
File Name: pgmpy/models/MarkovModel.py
Class Name: MarkovModel
Method Name: to_junction_tree


Project Name: scikit-optimize/scikit-optimize
Commit Name: 544875dd8a7fea49a86e5623d37274159b4ba7b5
Time: 2017-01-10
Author: betatim@gmail.com
File Name: skopt/optimizer/base.py
Class Name:
Method Name: base_minimize