Welcome to our Support Center

Set all training status

Description

Sets for all layers contained in the model the state of the boolean “training?”. If the boolean is “True”, then a layer backward is performed.

Input parameters

 

Model in : model architecture.
 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 All Train Status” 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 All Train Status” function to set to “True” the boolean that allows the training of a layer(training?). The value of the boolean is applied to all layers of the model.

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