10#ifdef MOOSE_LIBTORCH_ENABLED
14#include <torch/torch.h>
15#include <torch/script.h>
46 virtual torch::Tensor
forward(
const torch::Tensor & x)
override;
This base class is meant to gather the functions and members common in every neural network based on ...
virtual torch::Tensor forward(const torch::Tensor &x) override
Overriding the forward substitution function for the neural network, unfortunately this cannot be con...
TorchScriptModule()
Construct using a filename which contains the source code in torchscript format.
void loadNeuralNetwork(const std::string &filename)
Construct the neural network.
MOOSE now contains C++17 code, so give a reasonable error message stating what the user can do to add...