6629a7801184d9ff646c266154a09e94d643c39d,test/test_regression_2.py,,run,#Any#,14

Before Change


    hidden_size = 304
    seq_len = 304

    inputs = torch.rand(seq_len, batch_size, input_size)
    model = sru.SRU(
        input_size,
        hidden_size,
        num_layers=4,

After Change


        output_sru_250 = model(inputs)
    assert len(output_sru_235) == len(output_sru_250) == 2
    max_diff0 = (output_sru_235[0] - output_sru_250[0]).abs().max().item()
    max_diff1 = (output_sru_235[1] - output_sru_250[1]).abs().max().item()
    assert max_diff0 <= EPSILON
    assert max_diff1 <= EPSILON

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: asappresearch/sru
Commit Name: 6629a7801184d9ff646c266154a09e94d643c39d
Time: 2020-10-11
Author: hp@asapp.com
File Name: test/test_regression_2.py
Class Name:
Method Name: run


Project Name: asappresearch/sru
Commit Name: 2a15843223ac09c1331b1ca444da179ccab735d9
Time: 2020-10-07
Author: hp@asapp.com
File Name: test/test_regression_2.py
Class Name:
Method Name: run


Project Name: deepdrive/deepdrive
Commit Name: 0d75af3a27be4feeed205170ae6df4c58d355448
Time: 2019-05-27
Author: cquiter@gmail.com
File Name: util/sampler.py
Class Name: Sampler
Method Name: sample