Welcome to our Support Center

Summary

Description

Returns the summary of the model. Possibility to retrieve a cluster or a text with the information and save it in a file. This information consists of the successors, predecessors, the output shape, the layer and its name.

Input parameters

 

Model in : model architecture.
file_type : enum, type of the file on which the summary is written.

  • None : returns the summary only in a cluster array.
  • txt : returns the summary in a text file and cluster array. (default)
  • csv : returns the summary in a comma-separated values (csv) file and cluster array.

summary_mode : enum, display mode of the summary.

  • Simple : displays simple information (index, layer, input shape, output shape, predecessors, successors, parameters).
  • Advanced :Β displays advanced information (index, layer, input shape, output shape, predecessors, successors, parameters, data format, init weight, weights shape).
  • Complete : displays complete information (index, layer, input shape, output shape, predecessors, successors, parameters, data format, init weight, weights shape, boolean “training?”, boolean “update?”, boolean “store?”, loss derivative attenuation).

 

Output parameters

 

Model out : model architecture.

Summary : array

Β Layer : string, type and name of layer.
Input Shape : integer array, input size of the layer.
Output Shape : integer array, output size of the layer.
Successors : string array, the layer(s) connected to the output of the current layer.
Predecessors : string array, the layer(s) connected to the input of the current layer.

Example

All these exemples are snippets PNG, you can drop these Snippet onto the block diagram and get the depicted code added to your VI (Do not forget to install HAIBAL library to run it).

Simple summary of the model in a text file

1 – Define Graph

We define the graph with one input and two Dense layers named Dense1 and Dense2.

2 – Summary

We use the “Summary” function to have the model information in a text file.

Table of Contents