cb413bcf7b58223c6c4335f2eaaf3dc53c0b0c53,train.py,,main,#,190
Before Change
device = torch.device("cuda" if opt.cuda else "cpu")
//========= Loading Dataset =========//
data = pickle.load(open(opt.data, "rb"))
opt.max_token_seq_len = data["settings"].max_len
opt.src_pad_idx = data["vocab"]["src"].vocab.stoi[Constants.PAD_WORD]
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 =========//
After Change
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
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: deepfakes/faceswap
Commit Name: 2783c27e0027cbae9a3d97a04d33a7ef843fcd72
Time: 2018-11-07
Author: 36920800+torzdf@users.noreply.github.com
File Name: tools/lib_alignments/media.py
Class Name: AlignmentData
Method Name: __init__
Project Name: akkana/scripts
Commit Name: 8383b09c77027f09a7779940a142680b65282de0
Time: 2018-04-26
Author: akkana@shallowsky.com
File Name: qpdfview.py
Class Name: PDFWidget
Method Name: __init__