Welcome to our Support Center

Set Train Status by name

Description

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

Input parameters

 

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

Output parameters

 

Model out : model architecture.

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 β€œSet Train Status by name” 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 name” function to set to “True” the boolean (training ?) that allows the training of the layer named Dense2.

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