Welcome to our Support Center

PReLU 2D

Description

Gets the weights of the PReLU2D selected by the index. Type : polymorphic.

 

Input parameters

 

 Model in : model architecture.
 index : integerindex of layer.

 

Output parameters

 

 Model out : model architecture.

 weights_info : cluster

 index : integer, index of layer.
 name : string, name of layer.
 weights : cluster

 alpha : array, 1D values. alpha = [input_dim].

Dimension

  • alpha = [input_dim]

Its size depends on the input of the PReLU layer.
For example, if the layer has an entry [batch_size = 10, input_dim = 5] then alpha will have a size [input_dim = 5].
The size can also depend on the “shared_axis” parameter that you set to the PReLU layer. Each axis specified in this param is represented by a 1 in the weights.
For example, if you set the parameter with the values [1], alpha will have a size [1].

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).
Table of Contents