Sequential PINN Architecture #
Sequential fully-connected PINN architecture helpers for TorchLean verification.
This module covers the PINN architecture class used by the verification pipeline: fully-connected feed-forward networks with one shared hidden activation between linear layers. That is enough for the corridor networks used by the PINN/ODE checkers, but it is not a complete taxonomy of all PINN architectures. Convolutional PINNs, residual PINNs, Fourier-feature PINNs, and multi-branch physics models should get their own architecture records rather than overloading this sequential MLP description.
Supported hidden activation functions between linear layers.
- tanh : HiddenActivation
- relu : HiddenActivation
- sin : HiddenActivation
Instances For
Instances For
Architectural description for a sequential fully-connected PINN/corridor network.
- inputDim : ℕ
Input dimension.
- outputDim : ℕ
Output dimension.
- activation : HiddenActivation
Shared hidden activation function.
Instances For
Instances For
Instances For
Number of linear layers in the architecture.
Instances For
Dimensions (input, output) for each linear layer, in order.
Instances For
Node id assigned to the k-th linear layer (0-indexed).
Instances For
Id of the terminal linear layer (network output).
Instances For
Internal: map a PINN.HiddenActivation to the corresponding NN.IR.OpKind.
Instances For
Internal: worker for buildGraph.
Implementation note: TorchLean enables the backward.privateInPublic check, so exported
definitions should not depend on private helpers.
Instances For
Build a computation graph matching the supplied sequential PINN architecture.
Instances For
Output node id for an arbitrary graph, assuming the last node is the network output.