10#ifdef MOOSE_LIBTORCH_ENABLED
14#include <torch/torch.h>
41 c10::optional<at::Generator> generator = c10::nullopt);
MOOSE now contains C++17 code, so give a reasonable error message stating what the user can do to add...
void orthogonalInitializeTensor(torch::Tensor &tensor, Real gain=1.0, c10::optional< at::Generator > generator=c10::nullopt)
Fill a tensor with a (semi) orthogonal matrix using the provided generator.
at::Generator makeLibtorchCPUGenerator()
Create an owned CPU generator using libtorch's default seed behavior.