예제 #1
0
 def mp(input, grad):
     grad_op = AveragePoolGrad(avgpoolsize,
                               ignore_border=True,
                               st=stridesize,
                               padding=paddingsize,
                               mode=mode)
     return grad_op(input, grad)
예제 #2
0
 def mp(input, grad):
     grad_op = AveragePoolGrad(
         avgpoolshp,
         ignore_border=ignore_border,
         st=stride,
         mode=mode)
     return grad_op(input, grad)