12#ifdef MOOSE_LIBTORCH_ENABLED
14#include <torch/torch.h>
const InputParameters & parameters() const
Get the parameters of the object.
This user object caches assembly information (JxWxT) from MOOSE as a batched at::Tensor for the Torch...
This user object serves as the "interface" for interpolating MOOSE variable values and gradients from...
TorchKernel is a conceptual extension of a MOOSE kernel that operates on batched libtorch tensors.
TorchFEInterpolation & _fe
The FEM interface for getting variable values/gradients interpolated onto the finite element space.
void execute() override
Execute method.
void finalize() override
Finalize.
static InputParameters validParams()
at::Tensor _output
The output of the forward operator.
void initialize() override
Called before execute() is ever called so that data can be cleared.
virtual void forward()=0
The forward operator of this kernel.
TorchAssembly & _assembly
The assembly object with cached assembly information.