Common interface for inserting gathered MOOSE data into the NEML2 material model.
const InputParameters & parameters() const
Get the parameters of the object.
TorchKernel is a conceptual extension of a MOOSE kernel that operates on batched libtorch tensors.
at::Tensor _output
The output of the forward operator.
Base class for Torch FEM kernels that operate before the constitutive update, feeding their gathered ...
static InputParameters validParams()
at::Tensor gatheredData() const override
Convert data gathered from MOOSE into an at::Tensor (shape (batch, *base_shape))