We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e21e4bf commit d48afd4Copy full SHA for d48afd4
torch/nn/modules/pooling.py
@@ -549,6 +549,14 @@ def forward(self, input):
549
self.padding, self.dilation, self.ceil_mode,
550
self.return_indices)
551
552
+ def __repr__(self):
553
+ return self.__class__.__name__ + ' (' \
554
+ + 'size=' + str(self.kernel_size) \
555
+ + ', stride=' + str(self.stride) \
556
+ + ', padding=' + str(self.padding) \
557
+ + ', dilation=' + str(self.dilation) \
558
+ + ', ceil_mode=' + str(self.ceil_mode) + ')'
559
+
560
561
class AvgPool3d(Module):
562
r"""Applies a 3D average pooling over an input signal composed of several input
0 commit comments