Welcome to our Support Center

Get name by index

Description

Gets the name of the layer selected by the index given as input.

Input parameters

 

Model in : model architecture.
index : integer, layer index.

Output parameters

 

Model out : model architecture.

name : cluster

class_name : string, type of layer.
name : string, name 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 Name by index” 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 Name by index” function to get the name of the layer at index 2.

Table of Contents