public interface SpatialPooling<T extends Tensor> extends Function<T>
Notes
SpatialPadding2D,
SpatialMaxPooling,
SpatialAveragePooling| Modifier and Type | Method and Description |
|---|---|
void |
forward(T input,
T output)
Processes a spatial tensor.
|
ConfigSpatial |
getConfiguration()
Returns pooling configuration
|
void |
setParameters(java.util.List<T> parameters)
Can skip.
|
getOutputShape, getParameters, getParameterShapes, getTensorType, initializevoid forward(T input, T output)
N = number of mini-batch images C = number of channels in each image H = height of input image W = width of input image Hp = height of input image + padding Wp = width of input image + padding Shape of output spacial tensor: H' = 1 + (Hp - poolHeight) / periodY W' = 1 + (Wp - poolWidth ) / periodX
void setParameters(java.util.List<T> parameters)
setParameters in interface Function<T extends Tensor>parameters - No parameters requiredConfigSpatial getConfiguration()