0741f0965037f5d845b69a70ce86af2e965e8f0f,train.py,,trainModel,#Any#Any#Any#Any#Any#,215

Before Change



    // Define criterion of each GPU.
    if not opt.copy_attn:
        criterion = onmt.Loss.NMTCriterion(dataset["dicts"]["tgt"].size(), opt)
    else:
        criterion = onmt.modules.CopyCriterion

After Change



    // Define criterion of each GPU.
    if not opt.copy_attn:
        criterion = onmt.Loss.NMTCriterion(len(fields["tgt"].vocab), opt)
    else:
        criterion = onmt.modules.CopyCriterion
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: OpenNMT/OpenNMT-py
Commit Name: 0741f0965037f5d845b69a70ce86af2e965e8f0f
Time: 2017-08-20
Author: srush@seas.harvard.edu
File Name: train.py
Class Name:
Method Name: trainModel


Project Name: OpenNMT/OpenNMT-py
Commit Name: 32c7386aef93737926069ee284d827f8e954e086
Time: 2017-01-17
Author: adam.paszke@gmail.com
File Name: vae/main.py
Class Name:
Method Name: test


Project Name: OpenNMT/OpenNMT-py
Commit Name: 32c7386aef93737926069ee284d827f8e954e086
Time: 2017-01-17
Author: adam.paszke@gmail.com
File Name: vae/main.py
Class Name:
Method Name: train