b7c005999921399e383780086127e4a4aa02b079,memcnn/models/affine.py,AffineBlockInverseFunction,forward,#,254

Before Change


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

        // save the (empty) input and (non-empty) output variables
        cty.save_for_backward(y.data, output)

After Change



        with torch.no_grad():
            // partition in two equally sized set of channels
            y = yin.detach()
            y1, y2 = torch.chunk(y, 2, dim=1)
            y1, y2 = y1.contiguous(), y2.contiguous()

            // compute outputs
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


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/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/additive.py
Class Name: AdditiveBlockFunction
Method Name: forward