![]() |
IgANet
IgANets - Isogeometric Analysis Networks
|
#include </home/runner/work/iganet/iganet/include/iganet.hpp>
Public Types | |
using | Base = IgABase< GeometryMap, Variable > |
Base type. | |
using | optimizer_type = Optimizer |
Type of the optimizer. | |
Public Member Functions | |
IgANet (IgANetOptions defaults={}, iganet::Options< typename Base::value_type > options=iganet::Options< typename Base::value_type >{}) | |
Default constructor. | |
Protected Attributes | |
IgANetGenerator< typename Base::value_type > | net_ |
IgANet generator. | |
Optimizer | opt_ |
Optimizer. | |
IgANetOptions | options_ |
Options. | |
Additional Inherited Members | |
![]() | |
virtual const std::string & | name () const noexcept |
Returns the full qualified name of the object. | |
![]() | |
at::optional< std::string > | name_ |
String storing the full qualified name of the object. | |
This class implements the core functionality of IgANets
using iganet::IgANet< Optimizer, GeometryMap, Variable, IgABase >::Base = IgABase<GeometryMap, Variable> |
Base type.
using iganet::IgANet< Optimizer, GeometryMap, Variable, IgABase >::optimizer_type = Optimizer |
Type of the optimizer.
|
inlineexplicit |
Default constructor.
|
inline |
Constructor: number of layers, activation functions, and number of spline coefficients (same for geometry map and variables)
|
inline |
Constructor: number of layers, activation functions, and number of spline coefficients (same for geometry map and variables)
|
inline |
Constructor: number of layers, activation functions, and number of spline coefficients (different for geometry map and variables)
|
inline |
Constructor: number of layers, activation functions, and number of spline coefficients (different for geometry map and variables)
|
pure virtual |
Initializes epoch.
Implemented in fitting< Optimizer, GeometryMap, Variable >, fitting< Optimizer, GeometryMap, Variable >, fitting< Optimizer, GeometryMap, Variable >, fitting< Optimizer, GeometryMap, Variable >, fitting< Optimizer, GeometryMap, Variable >, poisson< Optimizer, GeometryMap, Variable >, stokes< Optimizer, GeometryMap, Variable >, Fitting< Optimizer, GeometryMap, Variable, memory_optimized, false >, Fitting< Optimizer, GeometryMap, Variable, memory_optimized, true >, and IgANet< Optimizer, GeometryMap, Variable >.
|
inline |
Evaluate IgANet.
|
inlinevirtual |
Returns the network inputs.
In the default implementation the inputs are the controll points of the geometry and the reference spline objects. This behavior can be changed by overriding this virtual function in a derived class.
|
inline |
Loads the IgANet from file.
|
pure virtual |
Computes the loss function.
Implemented in fitting< Optimizer, GeometryMap, Variable >, fitting< Optimizer, GeometryMap, Variable >, fitting< Optimizer, GeometryMap, Variable >, fitting< Optimizer, GeometryMap, Variable >, fitting< Optimizer, GeometryMap, Variable >, poisson< Optimizer, GeometryMap, Variable >, stokes< Optimizer, GeometryMap, Variable >, Fitting< Optimizer, GeometryMap, Variable, memory_optimized, false >, Fitting< Optimizer, GeometryMap, Variable, memory_optimized, true >, and IgANet< Optimizer, GeometryMap, Variable >.
|
inlinenoexcept |
Returns a constant reference to the named parameters of the IgANet object.
|
inline |
Returns a non-constant reference to the IgANet generator.
|
inline |
Returns a constant reference to the IgANet generator.
|
inlinenoexcept |
Returns the total number of parameters of the IgANet object.
|
inline |
Returns true if both IgANet objects are different.
|
inline |
Returns true if both IgANet objects are the same.
|
inline |
Returns a non-constant reference to the optimizer.
|
inline |
Returns a constant reference to the optimizer.
|
inline |
Returns a non-constant reference to the options structure.
|
inline |
Returns a constant reference to the options structure.
|
inlinenoexcept |
Returns a constant reference to the parameters of the IgANet object.
|
inlineoverridevirtualnoexcept |
Returns a string representation of the IgANet object.
Implements iganet::utils::Serializable.
|
inline |
Loads the IgANet from a torch::serialize::InputArchive object.
|
inline |
Saves the IgANet to file.
|
inlineoverridevirtual |
Returns the IgANet object as JSON object.
Implements iganet::utils::Serializable.
|
inlinevirtual |
Trains the IgANet.
|
inline |
Trains the IgANet.
|
inline |
Writes the IgANet into a torch::serialize::OutputArchive object.
|
protected |
IgANet generator.
|
protected |
Optimizer.
|
protected |