inputLayer
Description
An input layer inputs unformatted data or data with a custom format into a neural network.
For 2-D image input, use
imageInputLayer.For 3-D image input, use
image3dInputLayer.For sequence and time series input, use
sequenceInputLayer.For tabular and feature data input, use
featureInputLayer.
Creation
Syntax
Description
creates an input layer for unformatted data. (since R2025a)layer = inputLayer(inputSize)
creates an input layer and specifies a custom data format.layer = inputLayer(inputSize,inputFormat)
also specifies the layer name in addition to any of the input argument combinations in
previous syntaxes. For example, layer = inputLayer(___,Name=name)Name="in" specifies that the layer has
the name "in".