671ee67a03bd5bebf4c405af59eec45d3ca2a288,deeplift/blobs/convolution.py,AvgPool2D,_get_mxts_increments_for_inputs,#AvgPool2D#,589
Before Change
super(AvgPool2D, self).__init__(pool_mode=B.PoolMode.avg, **kwargs)
def _get_mxts_increments_for_inputs(self):
return super(AvgPool2D, self)._get_input_grad_given_outgrad(
out_grad=self.get_mxts())
class Flatten(SingleInputMixin, OneDimOutputMixin, Node):
After Change
return pos_contribs, neg_contribs
def _get_mxts_increments_for_inputs(self):
pos_mxts_increments = (super(AvgPool2D, self)
._get_input_grad_given_outgrad(
out_grad=self.get_pos_mxts()))
neg_mxts_increments = (super(AvgPool2D, self)
._get_input_grad_given_outgrad(
out_grad=self.get_neg_mxts()))
return pos_mxts_increments, neg_mxts_increments
class Flatten(SingleInputMixin, OneDimOutputMixin, Node):
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 8
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: AvgPool2D
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: 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/convolution.py
Class Name: MaxPool2D
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: MaxPool1D
Method Name: _get_mxts_increments_for_inputs