I was doing experiments with the max pooling layer but somehow tensors passed through the layer does not seem to change dimension. I'm not sure if I am using this function correctly. The documentation page only has a place holder example that is irrelevant to the max pooling.
Here's what I've done to generate a testing tensor and the max pooling layer
The original tensor content_sparse and the pooled tensor content_sparse_pooled have the same dimension, but I was expecting it do be different. I was expecting it to output a (dense) tensor that are in the same shape as the one output from a torch.nn.MaxPool2D([50, 50])
The original content_sparse:
I've also tried some global pooling and convolution function, they all output shapes as expected, just this maxpooling is not doing anything. Only local pooing methods (sum, max, etc.) is not changing the dimension.
Hello,
I was doing experiments with the max pooling layer but somehow tensors passed through the layer does not seem to change dimension. I'm not sure if I am using this function correctly. The documentation page only has a place holder example that is irrelevant to the max pooling. Here's what I've done to generate a testing tensor and the max pooling layer
The original tensor
content_sparse
and the pooled tensorcontent_sparse_pooled
have the same dimension, but I was expecting it do be different. I was expecting it to output a (dense) tensor that are in the same shape as the one output from atorch.nn.MaxPool2D([50, 50])
The originalcontent_sparse
:The output, however, looks the same as the input:
I've also tried some global pooling and convolution function, they all output shapes as expected, just this maxpooling is not doing anything. Only local pooing methods (sum, max, etc.) is not changing the dimension.
Any help is greatly appreciated!