Contenido principal

Capas integradas

Construya redes neuronales profundas utilizando capas integradas

Para la mayor parte de las tareas, puede usar capas integradas. Si no hay una capa integrada que necesita para la tarea, puede definir su propia capa personalizada. Puede definir capas personalizadas con parámetros que se puedan aprender y de estado. Después de definir una capa personalizada, puede comprobar que es válida y compatible con la GPU, y que devuelve como salida gradientes correctamente definidos. Para obtener una lista de capas compatibles, consulte Lista de capas de deep learning.

Apps

Deep Network DesignerDiseñar y visualizar redes de deep learning

Funciones

expandir todo

Capas de entrada

inputLayerInput layer (Desde R2023b)
imageInputLayerCapa de entrada de imagen
image3dInputLayer3-D image input layer
sequenceInputLayerCapa de entrada de secuencias
featureInputLayerCapa de entrada de características

Convolución y capas totalmente conectadas

convolution1dLayerCapa convolucional 1D (Desde R2021b)
convolution2dLayer2-D convolutional layer
convolution3dLayer3-D convolutional layer
groupedConvolution2dLayer2-D grouped convolutional layer
transposedConv1dLayerTransposed 1-D convolution layer (Desde R2022a)
transposedConv2dLayerTransposed 2-D convolution layer
transposedConv3dLayerTransposed 3-D convolution layer
fullyConnectedLayerCapa totalmente conectada

Capas recurrentes

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) (Desde R2022b)
gruProjectedLayerGated recurrent unit (GRU) projected layer for recurrent neural network (RNN) (Desde R2023b)

Capas transformadoras

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

Capas de ODE neuronales

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

Capas de activación

reluLayerCapa de unidad lineal rectificada (ReLU)
leakyReluLayerCapa de unidad lineal rectificada (ReLU) con fugas
preluLayerParametrized Rectified Linear Unit (PReLU) layer (Desde R2024a)
clippedReluLayerCapa de unidad lineal rectificada (ReLU) recortada
eluLayerExponential linear unit (ELU) layer
tanhLayerCapa de tangente hiperbólica (tanh)
swishLayerCapa swish (Desde R2021a)
geluLayerGaussian error linear unit (GELU) layer (Desde R2022b)
softmaxLayerCapa softmax
sigmoidLayerCapa sigmoide
softplusLayerSoftplus layer
complexReluLayerComplex rectified linear unit (ReLU) layer (Desde R2025a)
functionLayerFunction layer (Desde R2021b)

Capas de normalización

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

Capas de utilidades

dropoutLayerCapa de abandono
spatialDropoutLayerSpatial dropout layer (Desde R2024a)
flattenLayerCapa aplanada
crop2dLayer2-D crop layer
crop3dLayer3-D crop layer
scalingLayerScaling layer
quadraticLayerQuadratic layer
identityLayerIdentity layer (Desde R2024b)
complexToRealLayerComplex-to-real layer (Desde R2024b)
realToComplexLayerReal-to-complex layer (Desde R2024b)
networkLayerNetwork Layer (Desde R2024a)
reshapeLayerReshape layer (Desde R2025a)
permuteLayerPermute layer (Desde R2025a)

Agrupar y desagrupar capas

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

Capas de combinación

additionLayerCapa de suma
multiplicationLayerCapa de multiplicación
concatenationLayerCapa de concatenación
depthConcatenationLayerCapa de concatenación de profundidad
dlnetworkRedes neuronales de deep learning
imagePretrainedNetworkRedes neuronales preentrenadas para imágenes (Desde R2024a)
resnetNetwork2-D residual neural network (Desde R2024a)
resnet3dNetwork3-D residual neural network (Desde R2024a)
dag2dlnetworkConvert SeriesNetwork and DAGNetwork to dlnetwork (Desde R2024a)
addLayersAñadir capas a una red neuronal
removeLayersEliminar capas de una red neuronal
replaceLayerReplace layer in neural network
getLayerLook up a layer by name or path (Desde R2024a)
connectLayersConectar capas en una red neuronal
disconnectLayersDesconectar capas en una red neuronal
expandLayersExpand network layers (Desde R2024a)
groupLayersGroup layers into network layers (Desde R2024a)
addInputLayerAdd input layer to network (Desde R2022b)
initializeInitialize learnable and state parameters of neural network (Desde R2021a)
networkDataLayoutDeep learning network data layout for learnable parameter initialization (Desde 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
plotRepresentar una arquitectura de red neuronal
summaryImprimir un resumen de la red (Desde R2022b)
analyzeNetworkAnalyze deep learning network architecture
checkLayerCheck validity of custom or function layer
isequalCheck equality of neural networks (Desde R2021a)
isequalnCheck equality of neural networks ignoring NaN values (Desde R2021a)

Temas

Ejemplos destacados