27#include "neml2/models/Model.h"
28#include "neml2/base/DependencyResolver.h"
56 void set_value(
bool,
bool,
bool)
override;
59 void clear_chain_rule_cache()
69 void apply_second_order_chain_rule(
Model *
model);
72 const std::vector<VariableName> _additional_outputs;
81 std::map<Model *, LabeledMatrix> _dpout_din;
84 std::map<Model *, LabeledTensor3D> _d2pout_din2;
Definition ComposedModel.h:33
virtual void setup_submodel_input_views() override
Definition ComposedModel.cxx:164
virtual void check_AD_limitation() const override
Definition ComposedModel.cxx:146
virtual void allocate_variables(int deriv_order, bool options_changed) override
Call VariableStore::allocate_variables recursively on all submodels.
Definition ComposedModel.cxx:155
void register_nonlinear_params(const Model &m)
Recursively register sub-model's nonlinar parameters.
Definition ComposedModel.cxx:131
static OptionSet expected_options()
Definition ComposedModel.cxx:32
void set_value(bool, bool, bool) override
The map between input -> output, and optionally its derivatives.
Definition ComposedModel.cxx:182
The wrapper (decorator) for cross-referencing unresolved values at parse time.
Definition CrossRef.h:52
A single-batched, logically 2D LabeledTensor.
Definition LabeledMatrix.h:38
The base class for all constitutive models.
Definition Model.h:53
friend class ComposedModel
ComposedModel's set_value need to call submodel's set_value.
Definition Model.h:194
const torch::TensorOptions & options() const
This model's tensor options.
Definition Model.h:116
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