Package smile.deep.layer
Class AvgPool2dLayer
java.lang.Object
smile.deep.layer.AvgPool2dLayer
An average pooling layer that reduces a tensor by combining cells,
and assigning the average value of the input cells to the output cell.
-
Constructor Summary
ConstructorDescriptionAvgPool2dLayer
(int kernel) Constructor.AvgPool2dLayer
(int height, int width) Constructor. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface smile.deep.layer.Layer
apply, isTraining
-
Constructor Details
-
AvgPool2dLayer
public AvgPool2dLayer(int kernel) Constructor.- Parameters:
kernel
- the window/kernel size.
-
AvgPool2dLayer
public AvgPool2dLayer(int height, int width) Constructor.- Parameters:
height
- the window/kernel height.width
- the window/kernel width.
-
-
Method Details