Welcome to our Support Center

Set optimizer by name


Sets the optimizer parameters for the layer selected by the name given as input.

Input parameters


Model in : model architecture.
Β name :Β string,Β layer name.

Β optimizer :

Β algorithmΒ :Β enum, name of optimizer.
Β learning_rate :Β float, learning rate.
Β beta_1 :Β float, exponential decay rate for the 1st moment estimates.
Β beta_2 :Β float, exponential decay rate for the 2nd moment estimates.

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 Opti Params 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 function “Set Opti Params by name” to set the optimizers of layers named Dense2.

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