133e5b6a84e126cbcfbc5c11eeb6286185dbec2f,beginner_source/torchtext_translation_tutorial.py,,,#,464

Before Change



for epoch in range(N_EPOCHS):

    start_time = time.time()

    train_loss = train(model, train_iterator, optimizer, criterion, CLIP)
    valid_loss = evaluate(model, valid_iterator, criterion)

    end_time = time.time()

    epoch_mins, epoch_secs = epoch_time(start_time, end_time)

    print(f"Epoch: {epoch+1:02} | Time: {epoch_mins}m {epoch_secs}s")

After Change


        return outputs


INPUT_DIM = len(de_vocab)
OUTPUT_DIM = len(en_vocab)
// ENC_EMB_DIM = 256
// DEC_EMB_DIM = 256
// ENC_HID_DIM = 512
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: pytorch/tutorials
Commit Name: 133e5b6a84e126cbcfbc5c11eeb6286185dbec2f
Time: 2020-12-02
Author: 6156351+zhangguanheng66@users.noreply.github.com
File Name: beginner_source/torchtext_translation_tutorial.py
Class Name:
Method Name:


Project Name: erikbern/ann-benchmarks
Commit Name: b4672a00aa69ec9e44f32251a83576ffb3d1badc
Time: 2020-10-20
Author: aklibisz@gmail.com
File Name: ann_benchmarks/algorithms/elastiknn.py
Class Name: L2Lsh
Method Name: query


Project Name: pytorch/tutorials
Commit Name: 3128e13109c8766eafb413f2428bba976701e929
Time: 2020-12-02
Author: 6156351+zhangguanheng66@users.noreply.github.com
File Name: beginner_source/transformer_tutorial.py
Class Name:
Method Name: