10 #ifdef LIBTORCH_ENABLED 14 #include <torch/torch.h> 17 #include "nlohmann/json.h" A time-dependent, neural network-based control of multiple input parameters.
Reporter object that has a single execution of the "execute" method for for each execute flag...
const LibtorchNeuralNetControl * _controller
Pointer to the controller so that we can avoid warehouse lookups in the execute function.
static InputParameters validParams()
void initialSetup() override
Gets called at the beginning of the simulation before this object is asked to do its job...
void execute() override
Execute method.
const std::string _control_name
The name of the control objects which hold the neural networks.
const Moose::LibtorchArtificialNeuralNet *& _network
Reference to a neural net pointer declared as a reporter.
LibtorchArtificialNeuralNetParameters(const InputParameters ¶ms)
A Reporter which can print the parameter values of a LibtorchArtificialNeuralNetwork from within a Co...
void initialize() override
Called before execute() is ever called so that data can be cleared.
void finalize() override
Finalize.