27#include "neml2/models/NonlinearParameter.h"
49#define CONSTANTPARAMETER_TYPEDEF_FIXEDDIMTENSOR(T) \
50 typedef ConstantParameter<T> T##ConstantParameter
51FOR_ALL_FIXEDDIMTENSOR(CONSTANTPARAMETER_TYPEDEF_FIXEDDIMTENSOR);
A parameter that is actually just a constant.
Definition ConstantParameter.h:36
ConstantParameter(const OptionSet &options)
Definition ConstantParameter.cxx:44
const T & _value
The constant value.
Definition ConstantParameter.h:46
static OptionSet expected_options()
Definition ConstantParameter.cxx:32
void set_value(bool out, bool dout_din, bool d2out_din2) override
The map between input -> output, and optionally its derivatives.
Definition ConstantParameter.cxx:52
The wrapper (decorator) for cross-referencing unresolved values at parse time.
Definition CrossRef.h:52
const torch::TensorOptions & options() const
This model's tensor options.
Definition Model.h:116
The base class for nonlinear parameters.
Definition NonlinearParameter.h:51
A custom map-like data structure. The keys are strings, and the values can be nonhomogeneously typed.
Definition OptionSet.h:59
Definition CrossRef.cxx:32