blockDense

Block for a dense neural network layer

Extends from Interfaces.Layer.

Parameters

TypeNameDefaultDescription
IntegernumInputs (from Layer)Specification of the inputs of the layer
IntegernumNeurons (from Layer)Number of neurons in the layer
Real[:,:]weightsWeight table of a fully connected layer
Real[:]biasBias table of a fully connected layer

Connectors

TypeNameDefaultDescription
Modelica.Blocks.Interfaces.RealInput[numInputs]u (from Layer)Connector of Real input signals
Modelica.Blocks.Interfaces.RealOutput[numNeurons]y (from Layer)Connector of Real output signals

Contents

NameDescription
fActivation function of the layer