Wrap a ModPiece in an UM-Bridge Model. More...
#include <UMBridgeModPieceServer.h>
Wrap a ModPiece in an UM-Bridge Model.
This is needed in order to easily serve a MUQ ModPiece via UM-Bridge.
Definition at line 11 of file UMBridgeModPieceServer.h.
Public Member Functions | |
UMBridgeModPieceWrapper (std::shared_ptr< muq::Modeling::ModPiece > modPiece, std::string name) | |
Constructor. More... | |
std::vector< std::size_t > | GetInputSizes (const json &config_json=json()) const override |
std::vector< std::size_t > | GetOutputSizes (const json &config_json=json()) const override |
std::vector< std::vector< double > > | Evaluate (const std::vector< std::vector< double >> &inputs, json config) override |
std::vector< double > | Gradient (unsigned int outWrt, unsigned int inWrt, const std::vector< std::vector< double >> &inputs, const std::vector< double > &sens, json config=json()) override |
std::vector< double > | ApplyJacobian (unsigned int outWrt, unsigned int inWrt, const std::vector< std::vector< double >> &inputs, const std::vector< double > &vec, json config=json()) override |
std::vector< double > | ApplyHessian (unsigned int outWrt, unsigned int inWrt1, unsigned int inWrt2, const std::vector< std::vector< double >> &inputs, const std::vector< double > &sens, const std::vector< double > &vec, json config=json()) override |
bool | SupportsEvaluate () override |
bool | SupportsGradient () override |
bool | SupportsApplyJacobian () override |
bool | SupportsApplyHessian () override |
Public Member Functions inherited from umbridge::Model | |
Model (std::string name) | |
std::string | GetName () const |
|
inline |
Constructor.
modPiece | The ModPiece to wrap. |
name | The name of the model as exposed by UM-Bridge. |
Definition at line 19 of file UMBridgeModPieceServer.h.
|
inlineoverridevirtual |
Reimplemented from umbridge::Model.
Definition at line 61 of file UMBridgeModPieceServer.h.
References modPiece, muq::Modeling::UMBridgeModPiece::StdVectorsToEigenvectords(), and muq::Modeling::UMBridgeModPiece::StdVectorToEigenvectord().
|
inlineoverridevirtual |
Reimplemented from umbridge::Model.
Definition at line 49 of file UMBridgeModPieceServer.h.
References modPiece, muq::Modeling::UMBridgeModPiece::StdVectorsToEigenvectords(), and muq::Modeling::UMBridgeModPiece::StdVectorToEigenvectord().
|
inlineoverridevirtual |
Reimplemented from umbridge::Model.
Definition at line 32 of file UMBridgeModPieceServer.h.
References modPiece, and muq::Modeling::UMBridgeModPiece::StdVectorsToEigenvectords().
|
inlineoverridevirtual |
Implements umbridge::Model.
Definition at line 24 of file UMBridgeModPieceServer.h.
References modPiece.
|
inlineoverridevirtual |
Implements umbridge::Model.
Definition at line 28 of file UMBridgeModPieceServer.h.
References modPiece.
|
inlineoverridevirtual |
Reimplemented from umbridge::Model.
Definition at line 37 of file UMBridgeModPieceServer.h.
References modPiece, muq::Modeling::UMBridgeModPiece::StdVectorsToEigenvectords(), and muq::Modeling::UMBridgeModPiece::StdVectorToEigenvectord().
|
inlineoverridevirtual |
Reimplemented from umbridge::Model.
Definition at line 80 of file UMBridgeModPieceServer.h.
|
inlineoverridevirtual |
Reimplemented from umbridge::Model.
Definition at line 79 of file UMBridgeModPieceServer.h.
|
inlineoverridevirtual |
Reimplemented from umbridge::Model.
Definition at line 77 of file UMBridgeModPieceServer.h.
|
inlineoverridevirtual |
Reimplemented from umbridge::Model.
Definition at line 78 of file UMBridgeModPieceServer.h.
|
private |
Definition at line 83 of file UMBridgeModPieceServer.h.
Referenced by ApplyHessian(), ApplyJacobian(), Evaluate(), GetInputSizes(), GetOutputSizes(), and Gradient().