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


    with torch.no_grad():
        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: 5

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: NervanaSystems/coach
Commit Name: 9e9c4fd3322b6e8f47572fefdb8fd65018fb96f7
Time: 2019-05-27
Author: gal.leibovich@intel.com
File Name: rl_coach/exploration_policies/e_greedy.py
Class Name: EGreedy
Method Name: get_action