671ee67a03bd5bebf4c405af59eec45d3ca2a288,deeplift/blobs/convolution.py,AvgPool1D,_get_mxts_increments_for_inputs,#AvgPool1D#,468

Before Change


        super(AvgPool1D, self).__init__(pool_mode=B.PoolMode.avg, **kwargs) 

    def _get_mxts_increments_for_inputs(self):
        return super(AvgPool1D, self)._get_input_grad_given_outgrad(
                                       out_grad=self.get_mxts())


class Pool2D(SingleInputMixin, Node):

After Change


        return pos_contribs, neg_contribs

    def _get_mxts_increments_for_inputs(self):
        pos_mxts_increments = (super(AvgPool1D, self)
                               ._get_input_grad_given_outgrad(
                                       out_grad=self.get_pos_mxts()))
        neg_mxts_increments = (super(AvgPool1D, self)
                               ._get_input_grad_given_outgrad(
                                       out_grad=self.get_neg_mxts()))
        return pos_mxts_increments, neg_mxts_increments


class Pool2D(SingleInputMixin, Node):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: kundajelab/deeplift
Commit Name: 671ee67a03bd5bebf4c405af59eec45d3ca2a288
Time: 2017-04-14
Author: avanti.shrikumar@gmail.com
File Name: deeplift/blobs/convolution.py
Class Name: AvgPool1D
Method Name: _get_mxts_increments_for_inputs


Project Name: kundajelab/deeplift
Commit Name: 671ee67a03bd5bebf4c405af59eec45d3ca2a288
Time: 2017-04-14
Author: avanti.shrikumar@gmail.com
File Name: deeplift/blobs/core.py
Class Name: BatchNormalization
Method Name: _get_mxts_increments_for_inputs


Project Name: kundajelab/deeplift
Commit Name: 671ee67a03bd5bebf4c405af59eec45d3ca2a288
Time: 2017-04-14
Author: avanti.shrikumar@gmail.com
File Name: deeplift/blobs/convolution.py
Class Name: AvgPool2D
Method Name: _get_mxts_increments_for_inputs