b7c005999921399e383780086127e4a4aa02b079,memcnn/models/affine.py,AffineBlockFunction2,forward,#,377

Before Change


            output = torch.cat([y1, y2], dim=1)
            y1.set_()
            del y1
            y2.set_()
            del y2

        // save the input and output variables
        ctx.save_for_backward(x.data, output)

After Change


            y2 = x2 * gmr1 + gmr2
            x2.set_()
            del x2
            output = torch.cat([y1, y2], dim=1).detach_()

        // save the input and output variables
        ctx.save_for_backward(xin, output)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 3

Instances


Project Name: silvandeleemput/memcnn
Commit Name: b7c005999921399e383780086127e4a4aa02b079
Time: 2019-12-15
Author: silvandeleemput@gmail.com
File Name: memcnn/models/affine.py
Class Name: AffineBlockFunction2
Method Name: forward


Project Name: silvandeleemput/memcnn
Commit Name: b7c005999921399e383780086127e4a4aa02b079
Time: 2019-12-15
Author: silvandeleemput@gmail.com
File Name: memcnn/models/additive.py
Class Name: AdditiveBlockInverseFunction2
Method Name: forward


Project Name: silvandeleemput/memcnn
Commit Name: b7c005999921399e383780086127e4a4aa02b079
Time: 2019-12-15
Author: silvandeleemput@gmail.com
File Name: memcnn/models/affine.py
Class Name: AffineBlockInverseFunction2
Method Name: forward


Project Name: silvandeleemput/memcnn
Commit Name: b7c005999921399e383780086127e4a4aa02b079
Time: 2019-12-15
Author: silvandeleemput@gmail.com
File Name: memcnn/models/affine.py
Class Name: AffineBlockInverseFunction
Method Name: forward


Project Name: silvandeleemput/memcnn
Commit Name: b7c005999921399e383780086127e4a4aa02b079
Time: 2019-12-15
Author: silvandeleemput@gmail.com
File Name: memcnn/models/affine.py
Class Name: AffineBlockFunction
Method Name: forward


Project Name: silvandeleemput/memcnn
Commit Name: b7c005999921399e383780086127e4a4aa02b079
Time: 2019-12-15
Author: silvandeleemput@gmail.com
File Name: memcnn/models/additive.py
Class Name: AdditiveBlockFunction2
Method Name: forward


Project Name: silvandeleemput/memcnn
Commit Name: b7c005999921399e383780086127e4a4aa02b079
Time: 2019-12-15
Author: silvandeleemput@gmail.com
File Name: memcnn/models/affine.py
Class Name: AffineBlockFunction2
Method Name: forward