Package smile.deep.layer
Class AdaptiveAvgPool2dLayer
java.lang.Object
smile.deep.layer.AdaptiveAvgPool2dLayer
An adaptive average pooling that reduces a tensor by combining cells.
The output size should be specified and the stride and kernel-size are
automatically selected to adapt to the needs.
-
Constructor Summary
ConstructorDescriptionAdaptiveAvgPool2dLayer
(int size) Constructor.AdaptiveAvgPool2dLayer
(int height, int width) Constructor. -
Method Summary
-
Constructor Details
-
AdaptiveAvgPool2dLayer
public AdaptiveAvgPool2dLayer(int size) Constructor.- Parameters:
size
- the output size.
-
AdaptiveAvgPool2dLayer
public AdaptiveAvgPool2dLayer(int height, int width) Constructor.- Parameters:
height
- the output height.width
- the output width.
-
-
Method Details