6629a7801184d9ff646c266154a09e94d643c39d,test/test_regression_2.py,,run,#Any#,14
Before Change
with torch.no_grad():
output_sru_250 = model(inputs)
assert len(output_sru_235) == len(output_sru_250) == 2
assert torch.allclose(output_sru_235[0], output_sru_250[0])
assert torch.allclose(output_sru_235[1], output_sru_250[1])
if __name__ == "__main__":
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
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: keras-team/keras
Commit Name: d59f2519fa91ce3c6e68845e8d4ec55f469eb8a3
Time: 2015-07-02
Author: thomas.mccolgan@gmail.com
File Name: tests/auto/keras/test_constraints.py
Class Name: TestConstraints
Method Name: test_unitnorm