Welcome to our Support Center

Get Opti Params by index

Description

Gets the optimizer parameters for the layer selected by the index given as input.

Input parameters

 

Model in : model architecture.
Β index :Β integer,Β layer index.

Output parameters

 

Model out : model architecture.

opti_param : cluster

index : integer, index of layer.
name : string, name of layer.
Β 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.

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 β€œGet Opti Params 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 – Get Function

We use the “Get Opti Params by index” function to get the optimizer parameters of layer at index 2.

Table of Contents