IgANet
IgANets - Isogeometric Analysis Networks
Loading...
Searching...
No Matches
iganet::ModelSerialize Class Referenceabstract

Model serialization. More...

#include </home/runner/work/iganet/iganet/webapps/model.hpp>

Inheritance diagram for iganet::ModelSerialize:
iganet::Poisson2dModel< T > iganet::webapp::BSplineModel< Spline >

Public Member Functions

std::vector< std::string > getCapabilities () const
 
virtual void load (const nlohmann::json &json)=0
 Loads model from LibTorch file.
 
virtual nlohmann::json save () const =0
 Saves model to LibTorch file.
 

Detailed Description

Model serialization.

Member Function Documentation

◆ getCapabilities()

std::vector< std::string > iganet::ModelSerialize::getCapabilities ( ) const
inline

◆ load()

virtual void iganet::ModelSerialize::load ( const nlohmann::json &  json)
pure virtual

Loads model from LibTorch file.

Implemented in iganet::webapp::BSplineModel< Spline >, and iganet::Poisson2dModel< T >.

◆ save()

virtual nlohmann::json iganet::ModelSerialize::save ( ) const
pure virtual

Saves model to LibTorch file.

Implemented in iganet::webapp::BSplineModel< Spline >, and iganet::Poisson2dModel< T >.


The documentation for this class was generated from the following file: