
Max pooling over a sliding window, per channel (Geron Ch 12, morie.fn hmmxp)
Source:R/geron_w4b_native.R
morie_geron_max_pool.RdMax pooling over a sliding window, per channel (Geron Ch 12, morie.fn hmmxp)
Examples
M <- matrix(c(1, 2, 3, 4, 5, 6), nrow = 2)
morie_geron_max_pool(M)
#> $pooled
#> [,1]
#> [1,] 4
#>
#> $y
#> [,1]
#> [1,] 4
#>
#> $argmax
#> [,1]
#> [1,] 4
#>
#> $output_shape
#> [1] 1 1
#>
#> $parameters
#> [1] 0
#>
#> $estimate
#> [,1]
#> [1,] 4
#>
#> $n
#> [1] 6
#>
#> $method
#> [1] "Max pooling over a sliding window, per channel"
#>