Welcome to our Support Center

Forward 2D


Execute the forward pass of the model (alls layers).

Input parameters


Model in : model architecture.
data in : array, 2D data of the model input.
train_mode : enum

  • Nothing :Β do nothing.
  • Training :Β Do calculation to prepare future loss and backward function. This mode allow the future use of loss and backward function. Caution : if you use this mode with GPUΒ you must connect loss and backwardΒ to free memoryΒ  and avoid memory leak.
  • Predict :Β Do optimized prediction whithout loss and backward preparation. Does not allow to use loss and backward (error 5009). If you want to get metric loss, use metric function after forward.


Output parameters


outputs_data : array

Β name :Β string,Β name of layer.
Β index :Β integer,Β index of layer.
Β shape :Β array,Β shape of layer.
Β data :Β variant,Β output layer predictions.


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