10 #ifdef LIBTORCH_ENABLED 49 std::vector<GenericMaterialProperty<Real, false> *>
_properties;
std::vector< GenericMaterialProperty< Real, false > * > _properties
Vector of all the properties, for now we don't support AD.
static InputParameters validParams()
std::vector< const PostprocessorValue * > _module_inputs
The module input parameters stored as postprocessor values.
const unsigned int _num_inputs
Number of inputs to the neural net.
torch::Tensor _input_tensor
Place holder for the inputs to the neural network.
A user object the loads a torch module using the torch script format and just-in-time compilation...
This material declares properties which are evaluated as based on a torch script neural network...
const TorchScriptUserObject & _torch_script_userobject
The user object that holds the torch module.
const std::vector< PostprocessorName > _input_names
The functions to use for each property.
TorchScriptMaterial(const InputParameters ¶meters)
Materials compute MaterialProperties.
const unsigned int _num_props
Number of properties that will be defined.
virtual void initQpStatefulProperties() override
Initialize stateful properties at quadrature points.
const InputParameters & parameters() const
Get the parameters of the object.
void computeQpValues()
A helper method for evaluating the torch script module and populating the material properties...
const std::vector< std::string > _prop_names
Names of the material properties to define.
virtual void computeQpProperties() override
Users must override this method.