
2-D convolution forward pass, single filter (Geron Ch 12, morie.fn grcvf)
Source:R/geron_ml_native.R
morie_geron_conv2d_forward.RdCross-correlation, not flipped convolution – as in every DL library. Multi-channel input is a list of matrices or a 3-D array (C, H, W).
Examples
M <- matrix(c(1, 2, 3, 4, 5, 6), nrow = 2)
morie_geron_conv2d_forward(M, M)
#> $Y
#> [,1]
#> [1,] 91
#>
#> $out_shape
#> [1] 1 1
#>
#> $padded_shape
#> [1] 2 3
#>
#> $n_multiply_adds
#> [1] 6
#>
#> $stride
#> [1] 1 1
#>
#> $padding
#> [1] 0 0
#>
#> $estimate
#> [1] 91
#>
#> $n
#> [1] 1
#>
#> $method
#> [1] "2-D convolution forward pass"
#>