Main Content

dag2dlnetwork

Convert SeriesNetwork and DAGNetwork to dlnetwork

Since R2024a

    Description

    dlnet = dag2dlnetwork(net) 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.

    load digitsSeriesNet
    net
    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 or DAGNetwork object.

    Output Arguments

    collapse all

    Converted network, returned as a dlnetwork object.

    Algorithms

    collapse all

    Version History

    Introduced in R2024a