25#include "neml2/tensors/user_tensors/FullBatchTensor.h"
36 "Construct a full BatchTensor with given batch and base shapes filled with a given value.";
39 options.
set(
"batch_shape").doc() =
"Batch shape";
42 options.
set(
"base_shape").doc() =
"Base shape";
45 options.
set(
"value").doc() =
"Value used to fill the tensor";
53 options.get<
Real>(
"value"),
Definition BatchTensor.h:32
The wrapper (decorator) for cross-referencing unresolved values at parse time.
Definition CrossRef.h:52
Create a full BatchTensor from the input file.
Definition FullBatchTensor.h:37
FullBatchTensor(const OptionSet &options)
Construct a new FullBatchTensor object.
Definition FullBatchTensor.cxx:50
static OptionSet expected_options()
Definition FullBatchTensor.cxx:32
A custom map-like data structure. The keys are strings, and the values can be nonhomogeneously typed.
Definition OptionSet.h:59
const std::string & doc() const
A readonly reference to the option set's docstring.
Definition OptionSet.h:91
T & set(const std::string &)
Definition OptionSet.h:436
Definition UserTensor.h:33
static OptionSet expected_options()
Definition UserTensor.cxx:30
Definition CrossRef.cxx:32
const torch::TensorOptions default_tensor_options()
Definition types.cxx:30
std::vector< TorchSize > TorchShape
Definition types.h:36