Go to the source code of this file.
Classes | |
| class | Moose::LibtorchArtificialNeuralNet |
| Simple feed-forward neural net with optional affine input and output scaling. More... | |
Namespaces | |
| namespace | Moose |
| MOOSE now contains C++17 code, so give a reasonable error message stating what the user can do to address this in their environment if C++17 compatibility isn't found. | |
Functions | |
| void | Moose::to_json (nlohmann::json &json, const Moose::LibtorchArtificialNeuralNet *const &network) |
| Dump an artificial neural network into JSON for reporter output and debugging. | |
| void | Moose::loadLibtorchArtificialNeuralNetState (Moose::LibtorchArtificialNeuralNet &nn, const std::string &filename) |
| Load an artificial-neural-network checkpoint written as a native libtorch state archive. | |
| template<> | |
| void | dataStore< Moose::LibtorchArtificialNeuralNet > (std::ostream &stream, std::shared_ptr< Moose::LibtorchArtificialNeuralNet > &nn, void *context) |
| Serialize the artificial-neural-network metadata needed for restart. | |
| template<> | |
| void | dataLoad< Moose::LibtorchArtificialNeuralNet > (std::istream &stream, std::shared_ptr< Moose::LibtorchArtificialNeuralNet > &nn, void *context) |
| Deserialize the artificial-neural-network metadata needed for restart. | |
| template<> | |
| void | dataStore< Moose::LibtorchArtificialNeuralNet const > (std::ostream &stream, Moose::LibtorchArtificialNeuralNet const *&nn, void *context) |
| Placeholder serializer for reporter-only artificial-neural-network pointers. | |
| template<> | |
| void | dataLoad< Moose::LibtorchArtificialNeuralNet const > (std::istream &stream, Moose::LibtorchArtificialNeuralNet const *&nn, void *context) |
| Placeholder deserializer for reporter-only artificial-neural-network pointers. | |
| void dataLoad< Moose::LibtorchArtificialNeuralNet > | ( | std::istream & | stream, |
| std::shared_ptr< Moose::LibtorchArtificialNeuralNet > & | nn, | ||
| void * | context | ||
| ) |
Deserialize the artificial-neural-network metadata needed for restart.
| stream | Stream that provides the serialized data. |
| nn | Artificial neural network shared pointer to populate. |
| context | Serialization context passed through MOOSE data I/O. |
Definition at line 516 of file LibtorchArtificialNeuralNet.C.
| void dataLoad< Moose::LibtorchArtificialNeuralNet const > | ( | std::istream & | stream, |
| Moose::LibtorchArtificialNeuralNet const *& | nn, | ||
| void * | context | ||
| ) |
Placeholder deserializer for reporter-only artificial-neural-network pointers.
| stream | Stream that would provide the serialized data. |
| nn | Reporter neural network pointer. |
| context | Serialization context passed through MOOSE data I/O. |
Definition at line 567 of file LibtorchArtificialNeuralNet.C.
| void dataStore< Moose::LibtorchArtificialNeuralNet > | ( | std::ostream & | stream, |
| std::shared_ptr< Moose::LibtorchArtificialNeuralNet > & | nn, | ||
| void * | context | ||
| ) |
Serialize the artificial-neural-network metadata needed for restart.
| stream | Stream that receives the serialized data. |
| nn | Artificial neural network shared pointer to serialize. |
| context | Serialization context passed through MOOSE data I/O. |
Definition at line 478 of file LibtorchArtificialNeuralNet.C.
| void dataStore< Moose::LibtorchArtificialNeuralNet const > | ( | std::ostream & | stream, |
| Moose::LibtorchArtificialNeuralNet const *& | nn, | ||
| void * | context | ||
| ) |
Placeholder serializer for reporter-only artificial-neural-network pointers.
| stream | Stream that would receive the serialized data. |
| nn | Reporter neural network pointer. |
| context | Serialization context passed through MOOSE data I/O. |
Definition at line 558 of file LibtorchArtificialNeuralNet.C.