The package containes templates to include different types of neural networks in Modelica. One find blocks within the model which have to be connected with the dessired in- and outputs. The user should extend the model, give all parameters and give a interface which has to be connected to the inner blocks.
Steps to include a model:
- Create and train a model in TensorFlow
- Export a trained TensorFlow model as TfLite model
- Extends the appropriate base class
- Parametrize the model (provide path, number of in- and outputs, etc.)
- Define the interface and connect the in- and outputs of the blocks. The arrays have the same structure as those in TensorFlow: the inputs have to be connected in the same manner as they are used in the neural network during training.
The examples PipeLocalHeatTransfer_smallNN and TF_PI_Stateful uses this approach to create a model.
Contents
Generated at 2025-04-15T18:20:12Z
by OpenModelicaOpenModelica 1.25.0 using GenerateDoc.mos