Calculate the output resolution of a layer or pooling operation in a Convolutional Neural Network.
Usage
res_calculate(
type = c("layer", "pooling"),
in_res,
kernel_size,
stride,
padding
)
Arguments
- type
string. Accepted values are "layer" and "pooling".
- in_res
integer. It represents the resolution of the input layer.
- kernel_size
integer. It refers to the size of the kernel used in the convolution or pooling operation.
- stride
integer. It is the stride length for the convolution or pooling operation. Only used when type is "layer".
- padding
integer. It is the amount padding added to the input layer. Only used when type is "layer"