Welcome to our Support Center

Get Output Shape by name

Description

Gets the output size of the layer selected by the name given as input.

Input parameters

 

Model in : model architecture.
Β name :Β string,Β layer name.

Output parameters

 

Model out : model architecture.

output : cluster

name : string, name of layer.
index : integer, index of layer.
output_order : integer, oder of output.
Β output_shape : array, size of the output.

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).

Using the β€œGet Output Shape by name” function

1 – Define Graph

We define two graphs with an input of different size and a Dense layer. We merge the two graphs to have only one and we add a last Dense to the graph. Each Dense layer is parameterized differently.

2 – Merge Function

We use the “Merge” function to merge the two graphs.

3 – Get Function

We use the “Get Output Shape by name” function to get output size of layer named Dense2.

Table of Contents