Welcome to our Support Center

Set training status by index


Sets the boolean β€œtraining?” of layer selected by index given as input. If the boolean is β€œTrue”, then a layer backward is performed.

Input parameters


Model in : model architecture.
Β index :Β integer,Β layer index.
Β training? : boolean, performs the backward of the layer if true.

Output parameters


Model out : model architecture.


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 β€œSet Train Status by index” function

1 – Define Graph

We define the graph with one input and two Dense layers named Dense1 and Dense2 parameterized in different ways.

2 – Set Function

We use the “Set Train Status by index” function to set to “True” the boolean (training ?) that allows the training of the layer at index 2.

3 – Get Function

We use the “Get All Train Status” function to get the value of the “training?” parameter for all layers of the model.

Table of Contents