Class MaxPool2dLayer
java.lang.Object
smile.deep.layer.ModuleLayer
smile.deep.layer.MaxPool2dLayer
A max pooling layer that reduces a tensor by combining cells,
and assigning the maximum value of the input cells to the output cell.
-
Constructor Summary
ConstructorsConstructorDescriptionMaxPool2dLayer(int kernel) Constructor.MaxPool2dLayer(int height, int width) Constructor. -
Method Summary
Methods inherited from class ModuleLayer
module, toString
-
Constructor Details
-
MaxPool2dLayer
public MaxPool2dLayer(int kernel) Constructor.- Parameters:
kernel- the window/kernel size.
-
MaxPool2dLayer
public MaxPool2dLayer(int height, int width) Constructor.- Parameters:
height- the window/kernel height.width- the window/kernel width.
-
-
Method Details
-
forward
-