10#ifdef MOOSE_LIBTORCH_ENABLED
21 "assembly",
"The TorchAssembly object to use to provide assembly information");
23 "fe",
"The TorchFEInterpolation object to use to couple variables");
30 _assembly(_fe_problem.getUserObject<
TorchAssembly>(
"assembly", 0)),
38 TIME_SECTION(
"execute", 1,
"Torch FEM kernel execution");
static InputParameters validParams()
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(const InputParameters ¶meters)
void execute() override
Execute method.
static InputParameters validParams()
virtual void forward()=0
The forward operator of this kernel.