dag2dlnetwork - Convert SeriesNetwork and DAGNetwork to

    dlnetwork - MATLAB ([original](https://in.mathworks.com/help/deeplearning/ref/dag2dlnetwork.html)) ([raw](?raw))

Main Content

Convert SeriesNetwork and DAGNetwork todlnetwork

Since R2024a

Syntax

Description

[dlnet](#mw%5F8c2e8451-c001-4efa-8a0c-de90b4019c26) = dag2dlnetwork([net](#mw%5Ff1e204a4-5f30-41d9-bd17-853941f5dbd3)) converts the specified SeriesNetwork or DAGNetwork object to a dlnetwork object.

example

Examples

collapse all

Load a trained SeriesNetwork object into the workspace and inspect it.

net = SeriesNetwork with properties:

     Layers: [15×1 nnet.cnn.layer.Layer]
 InputNames: {'imageinput'}
OutputNames: {'classoutput'}

Convert the network to a dlnetwork object.

dlnet = dag2dlnetwork(net)

dlnet = dlnetwork with properties:

     Layers: [14×1 nnet.cnn.layer.Layer]
Connections: [13×2 table]
 Learnables: [14×3 table]
      State: [6×3 table]
 InputNames: {'imageinput'}
OutputNames: {'softmax'}
Initialized: 1

View summary with summary.

Input Arguments

collapse all

Input network, specified as a SeriesNetwork orDAGNetwork object.

Algorithms

collapse all

The dag2dlnetwork function applies these adjustments to the input network to make it compatible with dlnetwork functionality:

Version History

Introduced in R2024a