max-pooling

Pytorch: a similar process to reverse pooling and replicate padding?

Pytorch: a similar process to reverse pooling and replicate padding? Question: I have a tensor A that has shape (batch_size, width, height). Assume that it has these values: A = torch.tensor([[[0, 1], [1, 0]]]) I am also given a number K that is a positive integer. Let K=2 in this case. I want to do …

Total answers: 3

Difference between the input shape for a 1D CNN, 2D CNN and 3D CNN

Difference between the input shape for a 1D CNN, 2D CNN and 3D CNN Question: I’m first time building a CNN model for image classification and i’m a little bit confused about what would be the input shape for each type (1D CNN, 2D CNN, 3D CNN) and how to fix the number of filters …

Total answers: 2

how to perform max/mean pooling on a 2d array using numpy

how to perform max/mean pooling on a 2d array using numpy Question: Given a 2D(M x N) matrix, and a 2D Kernel(K x L), how do i return a matrix that is the result of max or mean pooling using the given kernel over the image? I’d like to use numpy if possible. Note: M, …

Total answers: 9