27#include "neml2/models/Interpolation.h"
96 template <
typename T2>
97 T2 mask(
const T2 &
in,
const torch::Tensor &
m)
const;
112template <
typename T2>
The wrapper (decorator) for cross-referencing unresolved values at parse time.
Definition CrossRef.h:56
The base class for interpolated nonlinear parameter.
Definition Interpolation.h:49
Linearly interpolate the parameter along a single axis.
Definition LinearInterpolation.h:76
LinearInterpolation(const OptionSet &options)
Definition LinearInterpolation.cxx:44
static OptionSet expected_options()
Definition LinearInterpolation.cxx:36
void set_value(bool out, bool dout_din, bool d2out_din2) override
The map between input -> output, and optionally its derivatives.
Definition LinearInterpolation.cxx:63
const torch::TensorOptions & options() const
Storage tensor options.
Definition Model.h:111
A custom map-like data structure. The keys are strings, and the values can be nonhomogeneously typed.
Definition OptionSet.h:100
The (logical) scalar.
Definition Scalar.h:38
TensorShape add_shapes(S &&... shape)
Definition utils.h:298
Definition CrossRef.cxx:30
LinearInterpolation< Scalar > ScalarLinearInterpolation
Definition LinearInterpolation.h:122
LinearInterpolation< SR2 > SR2LinearInterpolation
Definition LinearInterpolation.h:124
LinearInterpolation< Vec > VecLinearInterpolation
Definition LinearInterpolation.h:123
torch::SmallVector< Size > TensorShape
Definition types.h:34