TorchScriptUserObject
Description
This user object loads a torch module that has been exported from pytorch in a torch script format. The user object loads the modules when the user object is execute which can be controlled using the execute_on
flag.
For more information on how to save a torch module using a torch script format, visit the official documentation.
Example Input Syntax
[UserObjects]
[my_net]
type = TorchScriptUserObject
filename = "my_net.pt"
load_during_construction = true
execute_on = INITIAL
[]
[]
(moose/test/tests/materials/torchscript_material/test.i)warningwarning
The detailed documentation of this object is only available when Moose is compiled with Libtorch. For instructions on how to compile Moose with Libtorch, visit the general installation webpage or click here.