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