25#include "neml2/tensors/user_tensors/OnesBatchTensor.h"
35 options.
doc() =
"Construct a BatchTensor with batch and base shapes filled with ones.";
38 options.
set(
"batch_shape").doc() =
"Batch shape";
41 options.
set(
"base_shape").doc() =
"Base shape";
Definition BatchTensor.h:32
Create a ones BatchTensor from the input file.
Definition OnesBatchTensor.h:37
static OptionSet expected_options()
Definition OnesBatchTensor.cxx:32
OnesBatchTensor(const OptionSet &options)
Construct a new OnesBatchTensor object.
Definition OnesBatchTensor.cxx:46
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