Max pooling : Maximum value position with parallel gradient
Max pooling maximizes the value of the window.
Learning objectives and first steps2 objectives 2 first fixes
Try to do it after reading
- Track the biggest pool of reverse routes
- Understanding the agreement to achieve the point of no less than one
Suggested first
- Thrust and Matrix Operations
- Basic neural network
The output is simple. The reverse requires a location
Max pooling maximizes the value of the window. Only one number is seen in the forward, but the reverse requires knowing which input position is selected. For the single maximum value, the gradient from the output returns along that position and the other position is 0. It is not evenly distributed to all the values in the window.
Window [1,5,5], output 5. If the upstream gradient is 3, the input gradient is [0,3,0]. The average pool is 1 for each and is a different calculation. Combining the two reverses would change the focus of model learning.
When the window appears [5,5,2], the maximum function is indistinguishable at the point of the parallel column, and there are many minor gradients in mathematics. How the framework returns the index and route specifically depends on the calculation and backend agreement and cannot be written in half of each of the two maximum values without checking. The test should avoid parallel identification of the smooth areas and separate checks of parallel behaviour.
Overlapping windows can add to the contribution
Enter [1,5,2,4], window 2, step 1, output [5,5,5,4]. The middle five are selected by two windows, and if the upper gradient is 1 each, it receives 2. The reverse must be accompanied by overlapping paths, which cannot be covered with the last assigned value, and handwriting is particularly vulnerable to this error.
There are also specific rules for pool output size, completion and ceil_mode. The virtual value of the maximum pool boundary cannot be processed at random at normal zero, otherwise padding0, when it is all negative, is wrong to be the maximum. The physical framework often uses a boundary definition that is appropriate for maximum operation and should look for interfaces.
Poolization creates partial insensitivity, but does not mean that it is completely unchanged with regard to arbitrary movement. Long steps and boundaries can change window attribution; The loss of precise locations for positioning missions also requires follow-up structural compensation.
This section is explained by the classic maximum pool with PyTorch2 interface and the gradient value is synthetic manual. The specific choice of points to be included should not be described as a general law for all frameworks.
[15,2] Upstream gradient 3, what is the input gradient?
The only maximum position to receive 3 is [0,3,0].
The same input was selected by two overlapping windows, the gradient overwrite or add?
In addition, it affects the target through two paths.
Maximum value indexes can also be used for some counterpooling operations, but only indexes and maximum values do not restore other unselected values in the window. Counter-pooling usually places the value back to the designated location, while the rest is filled as agreed and is not a true message counter-information for the pool.
When using the pool index to restore position, the original space size is retained, multiple input sizes may be the same pool output, and the index itself is not sufficient to describe the complete layout.
Sources and reconciliations
Definitions, methods and interfaces are available.
Figures and calculations are reorganized according to this chapter. Mathematical measurements, framework operations and real business effects are described separately in the body of the text.