File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -242,6 +242,23 @@ The input(X) size and output(Out) size may be different.
242
242
W_{out} = \\frac{(W_{in} - ksize[1] + 2 * paddings[1] + strides[1] - 1)}{strides[1]} + 1
243
243
$$
244
244
245
+ For exclusive = true:
246
+ $$
247
+ hstart = i * strides[0] - paddings[0]
248
+ hend = hstart + ksize[0]
249
+ wstart = j * strides[1] - paddings[1]
250
+ wend = wstart + ksize[1]
251
+ Output(i ,j) = \\frac{sum(Input[hstart:hend, wstart:wend])}{ksize[0] * ksize[1]}
252
+ $$
253
+ For exclusive = false:
254
+ $$
255
+ hstart = max(0, i * strides[0] - paddings[0])
256
+ hend = min(H, hstart + ksize[0])
257
+ wstart = max(0, j * strides[1] - paddings[1])
258
+ wend = min(W, wstart + ksize[1])
259
+ Output(i ,j) = \\frac{sum(Input[hstart:hend, wstart:wend])}{(hend - hstart) * (wend - wstart)}
260
+ $$
261
+
245
262
)DOC" );
246
263
}
247
264
You can’t perform that action at this time.
0 commit comments