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