Hauptinhalt

Integrierte Schichten

Erstellen tiefer neuronaler Netze mithilfe eingebauter Schichten

Für die meisten Aufgaben können Sie integrierte Schichten verwenden. Wenn es eine integrierte Schicht, die Sie für Ihre Aufgabe benötigen, nicht gibt, können Sie Ihre eigene Ebene definieren. Sie können benutzerdefinierte Schichten mit erlernbaren und Zustandsparametern definieren. Nachdem Sie eine benutzerdefinierte Schicht definiert haben, können Sie überprüfen, ob die Schicht gültig und GPU-kompatibel ist und korrekt definierte Gradienten ausgibt. Eine Liste der unterstützten Schichten finden Sie unter List of Deep Learning Layers.

Apps

Deep Network DesignerEntwurf und Visualisierung von Deep-Learning-Netzen

Funktionen

alle erweitern

Eingabeschichten

inputLayerInput layer (Seit R2023b)
imageInputLayerImage input layer
image3dInputLayer3-D image input layer
sequenceInputLayerSequence input layer
featureInputLayerFeature input layer

Faltungsneuronale und vollständig verknüpfte Schichten

convolution1dLayer1-D convolutional layer (Seit R2021b)
convolution2dLayer2-D convolutional layer
convolution3dLayer3-D convolutional layer
groupedConvolution2dLayer2-D grouped convolutional layer
transposedConv1dLayerTransposed 1-D convolution layer (Seit R2022a)
transposedConv2dLayerTransposed 2-D convolution layer
transposedConv3dLayerTransposed 3-D convolution layer
fullyConnectedLayerFully connected layer

Wiederkehrende Schichten

lstmLayerLong short-term memory (LSTM) layer for recurrent neural network (RNN)
bilstmLayerBidirectional long short-term memory (BiLSTM) layer for recurrent neural network (RNN)
gruLayerGated recurrent unit (GRU) layer for recurrent neural network (RNN)
lstmProjectedLayerLong short-term memory (LSTM) projected layer for recurrent neural network (RNN) (Seit R2022b)
gruProjectedLayerGated recurrent unit (GRU) projected layer for recurrent neural network (RNN) (Seit R2023b)

Transformer-Schichten

selfAttentionLayerSelf-attention layer (Seit R2023a)
attentionLayerDot-product attention layer (Seit R2024a)
positionEmbeddingLayerPosition embedding layer (Seit R2023b)
sinusoidalPositionEncodingLayerSinusoidal position encoding layer (Seit R2023b)
embeddingConcatenationLayerEmbedding concatenation layer (Seit R2023b)
indexing1dLayer1-D indexing layer (Seit R2023b)

Neuronale ODE-Schichten

neuralODELayerNeural ODE layer (Seit R2023b)
deep.ode.options.ODE1Neural ODE solver options for nonstiff differential equations using Euler method (Seit R2025a)
deep.ode.options.ODE45Neural ODE solver options for nonstiff differential equations (Seit R2025a)

Aktivierungsschichten

reluLayerReLU-Schicht (Rectified Linear Unit)
leakyReluLayerLeaky Rectified Linear Unit (ReLU) layer
preluLayerParametrized Rectified Linear Unit (PReLU) layer (Seit R2024a)
clippedReluLayerClipped Rectified Linear Unit (ReLU) layer
eluLayerExponential linear unit (ELU) layer
tanhLayerHyperbolic tangent (tanh) layer
swishLayerSwish layer (Seit R2021a)
geluLayerGaussian error linear unit (GELU) layer (Seit R2022b)
softmaxLayerSoftmax layer
sigmoidLayerSigmoid layer
softplusLayerSoftplus layer
complexReluLayerComplex rectified linear unit (ReLU) layer (Seit R2025a)
functionLayerFunction layer (Seit R2021b)

Normalisierungsschichten

batchNormalizationLayerBatch normalization layer
groupNormalizationLayerGroup normalization layer
instanceNormalizationLayerInstance normalization layer (Seit R2021a)
layerNormalizationLayerLayer normalization layer (Seit R2021a)
crossChannelNormalizationLayer Channel-wise local response normalization layer

Utility-Schichten

dropoutLayerDropout layer
spatialDropoutLayerSpatial dropout layer (Seit R2024a)
flattenLayerFlatten layer
crop2dLayer2-D crop layer
crop3dLayer3-D crop layer
scalingLayerScaling layer
quadraticLayerQuadratic layer
identityLayerIdentity layer (Seit R2024b)
complexToRealLayerComplex-to-real layer (Seit R2024b)
realToComplexLayerReal-to-complex layer (Seit R2024b)
networkLayerNetwork Layer (Seit R2024a)
reshapeLayerReshape layer (Seit R2025a)
permuteLayerPermute layer (Seit R2025a)

Pooling- und Unpooling-Schichten

averagePooling1dLayer1-D average pooling layer (Seit R2021b)
averagePooling2dLayerAverage pooling layer
averagePooling3dLayer3-D average pooling layer
adaptiveAveragePooling2dLayerAdaptive average pooling 2-D layer (Seit R2024a)
globalAveragePooling1dLayer1-D global average pooling layer (Seit R2021b)
globalAveragePooling2dLayer2-D global average pooling layer
globalAveragePooling3dLayer3-D global average pooling layer
globalMaxPooling1dLayer1-D global max pooling layer (Seit R2021b)
globalMaxPooling2dLayerGlobal max pooling layer
globalMaxPooling3dLayer3-D global max pooling layer
maxPooling1dLayer1-D max pooling layer (Seit R2021b)
maxPooling2dLayerMax pooling layer
maxPooling3dLayer3-D max pooling layer
maxUnpooling2dLayerMax unpooling layer

Kombinationsschichten

additionLayerAddition layer
multiplicationLayerMultiplication layer
concatenationLayerConcatenation layer
depthConcatenationLayerDepth concatenation layer
dlnetworkDeep learning neural network
imagePretrainedNetworkPretrained neural network for images (Seit R2024a)
resnetNetwork2-D residual neural network (Seit R2024a)
resnet3dNetwork3-D residual neural network (Seit R2024a)
dag2dlnetworkConvert SeriesNetwork and DAGNetwork to dlnetwork (Seit R2024a)
addLayersAdd layers to neural network
removeLayersRemove layers from neural network
replaceLayerReplace layer in neural network
getLayerLook up a layer by name or path (Seit R2024a)
connectLayersConnect layers in neural network
disconnectLayersDisconnect layers in neural network
expandLayersExpand network layers (Seit R2024a)
groupLayersGroup layers into network layers (Seit R2024a)
addInputLayerAdd input layer to network (Seit R2022b)
initializeInitialize learnable and state parameters of neural network (Seit R2021a)
networkDataLayoutDeep learning network data layout for learnable parameter initialization (Seit R2022b)
setL2FactorSet L2 regularization factor of layer learnable parameter
getL2FactorGet L2 regularization factor of layer learnable parameter
setLearnRateFactorSet learn rate factor of layer learnable parameter
getLearnRateFactorGet learn rate factor of layer learnable parameter
plotGrafisches Darstellen der Architektur des neuronalen Netzes
summaryÜbersicht über Netze drucken (Seit R2022b)
analyzeNetworkAnalyze deep learning network architecture
checkLayerCheck validity of custom or function layer
isequalCheck equality of neural networks (Seit R2021a)
isequalnCheck equality of neural networks ignoring NaN values (Seit R2021a)

Themen

Enthaltene Beispiele