Welcome to our Support Center

Set all activations

Description

Sets the same activations for every layer of the model.

If the layers is LSTM/GRU/ConvLSTM it’ll be multiple activations :

  • Activation (All layers with an activation)
  • Recurrent Activation (GRU/LSTM/ConvLSTM)
  • Output Activation (LSTM/ConvLSTM)

 

Input parameters

 

Model in : model architecture.

activation_array : cluster

activation : enum, activation function to use.
RNNCells : cluster,

recurrent_activation : enum, activation function to use for the recurrent step.
output_activation : enum,
activation function to use.

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 Opti Params” 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 function “Set All Opti Params” to set the optimizers of all layers of the model.

3 – Get Function

We use the “Get All Opti Params” function to get the optimizer parameters for all layers in the model.

Table of Contents