2a15843223ac09c1331b1ca444da179ccab735d9,test/test_regression_1.py,,run,#,14

Before Change



    with torch.no_grad():
        outputs = model(inputs)
        torch.save(outputs, args.out_outputs)
        torch.save(model.state_dict(), args.out_model)


if __name__ == "__main__":

After Change



    with torch.no_grad():
        outputs = model(inputs)
    torch.save(inputs, args.out_inputs)
    torch.save(outputs, args.out_outputs)
    torch.save(model.state_dict(), args.out_model)


if __name__ == "__main__":
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


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


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


Project Name: streamlit/streamlit
Commit Name: c66b54878ac477f75e0e505d02831673ad3060c8
Time: 2019-09-16
Author: arraydude@gmail.com
File Name: lib/streamlit/elements/image_proto.py
Class Name:
Method Name: _PIL_to_bytes


Project Name: streamlit/streamlit
Commit Name: c66b54878ac477f75e0e505d02831673ad3060c8
Time: 2019-09-16
Author: arraydude@gmail.com
File Name: lib/streamlit/elements/image_proto.py
Class Name:
Method Name: _np_array_to_bytes