27#include "neml2/user_tensors/UserTensorBase.h"
45 T
make()
const override;
49 const std::filesystem::path _torch_script;
52 const std::string _tensor_name;
61 const unsigned int _intmd_dim;
Read the tensors provided by a torch script file.
Definition FromTorchScript.h:37
FromTorchScript(const OptionSet &options)
Definition FromTorchScript.cxx:73
T make() const override
Helper to make the tensor given user input options.
Definition FromTorchScript.cxx:90
static OptionSet expected_options()
Definition FromTorchScript.cxx:41
A custom map-like data structure. The keys are strings, and the values can be nonhomogeneously typed.
Definition OptionSet.h:51
Definition UserTensorBase.h:41
Definition DiagnosticsInterface.cxx:30
c10::SmallVector< Size, 8 > TensorShape
Definition types.h:66