Welcome to our Support Center

Get Index by name

Description

Gets the index 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.

index : cluster

class_name : string, type of layer.
index : integer, index of layer.
input_shape : array, input size of 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).

Using the β€œGet Index by name” function

1 – Define Graph

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

2 – Get Function

We use the “Get Index by name” function to get the index of the layer named Dense2.

Table of Contents