NetInformation

NetInformation[net,"property"]

gives information about the specified property of the neural network net.

NetInformation[{net1,net2,},"property"]

gives a list containing the result for each neti.

Details

  • Available properties include:
  • "Arrays"association giving each array in the network
    "ArraysByteCounts"association giving the byte count of each array
    "ArraysCount"total number of arrays in all layers
    "ArraysDimensions"association giving the dimensions of each array
    "ArraysElementCounts"association giving the number of elements in each array
    "ArraysPositionList"position specifications of arrays for NetExtract
    "ArraysSizes"association giving the size of each array
    "ArraysTotalByteCount"total number of bytes in all arrays in all layers
    "ArraysTotalElementCount"total number of elements in all arrays
    "ArraysTotalSize"total size of all arrays in all layers
    "FullSummaryGraphic"graphic representing connectivity of all layers in the net, at any depth
    "InputForm"expression to reconstruct the net
    "InputPortNames"list of names of input ports
    "InputPorts"association of input port shapes
    "Layers"association giving each layer in the network
    "LayersCount"total number of layers
    "LayersGraph"graph representing layer connectivity
    "LayersList"list of all layers
    "LayerTypeCounts"how many times each type of layer occurs in the network
    "MXNetNodeGraph"raw graph of underlying "MXNet" operations
    "MXNetNodeGraphPlot"annotated graph of "MXNet" operations
    "OutputPortNames"list of names of output ports
    "OutputPorts"association of output port shapes
    "Properties"available properties
    "RecurrentStatesCount"number of recurrent states in the net
    "RecurrentStatesPositionList"position specifications of recurrent states for NetStateObject
    "SharedArraysCount"total number of shared arrays
    "SummaryGraphic"graphic representing connectivity of layers in a NetChain or NetGraph
  • The properties "ArrayByteCount" etc. treat all arrays as if they have already been initialized.

Examples

open allclose all

Basic Examples  (1)

Count the number of layers in a net:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

Count the number of arrays in a net:

In[3]:=
Click for copyable input
Out[3]=

Give the dimensions of all arrays in the net:

In[4]:=
Click for copyable input
Out[4]=

Count the types of layers that are present:

In[5]:=
Click for copyable input
Out[5]=

Plot the underlying operations of the net when compiled to "MXNet":

In[6]:=
Click for copyable input
Out[6]=
In[7]:=
Click for copyable input
Out[7]=

Scope  (1)

Properties & Relations  (1)

See Also

NetExtract  NetChain  NetGraph  NetTrainResultsObject  ClassifierMeasurements

Tutorials

Introduced in 2018
(11.3)