resize2dLayer
2-D resize layer
Description
A 2-D resize layer resizes 2-D input by a scale factor, to a specified height and width, or to the size of a reference input feature map.Use of this layer requires Deep Learning Toolbox™.
Creation
Syntax
Description
layer = resize2dLayer('Scale',
creates a 2-D resize layer and sets theScaleproperty as the scale factor specified byscale
)scale
.
层= resize2dLayer(“输出Size',
creates a 2-D resize layer and sets theOutputSizeproperty with the height and width specified byoutputSize
)outputSize
.
layer = resize2dLayer('EnableReferenceInput',tf)
creates a 2-D resize layer and sets theEnableReferenceInputproperty with the boolean specified bytf
. When you specify the value astrue
, the layer adds an additional input that accepts a reference feature map and resizes the input to the size of the reference feature map.
layer = resize2dLayer(___,
sets the optionalMethod,GeometricTransformMode,NearestRoundingMode, andNameproperties using name-value pair arguments. You can specify multiple name-value pair arguments. Enclose each property name in single quotes.Name,Value
)
Example:层= resize2dLayer(“输出Size',[128 128],'Method','bilinear')
creates a 2-D resize layer that resizes input to 128-by-128 pixels using bilinear interpolation
Properties
Examples
Extended Capabilities
Version History
See Also
resize3dLayer
|dlresize
|averagePooling2dLayer
(Deep Learning Toolbox)|transposedConv2dLayer
(Deep Learning Toolbox)|importONNXLayers
(Deep Learning Toolbox)
Topics
- Deep Learning in MATLAB(Deep Learning Toolbox)
- Specify Layers of Convolutional Neural Network(Deep Learning Toolbox)
- List of Deep Learning Layers(Deep Learning Toolbox)