25#include "neml2/tensors/user_tensors/IdentityBatchTensor.h"
35 options.
doc() =
"Construct an identity BatchTensor with given batch shape.";
38 options.
set(
"batch_shape").doc() =
"Batch shape";
41 options.
set(
"n").doc() =
42 "Diagonal size of the identity tensor, i.e., base shape of the identity tensor will be (n,n)";
Definition BatchTensor.h:32
The wrapper (decorator) for cross-referencing unresolved values at parse time.
Definition CrossRef.h:52
Create an identity BatchTensor from the input file.
Definition IdentityBatchTensor.h:37
static OptionSet expected_options()
Definition IdentityBatchTensor.cxx:32
IdentityBatchTensor(const OptionSet &options)
Construct a new IdentityBatchTensor object.
Definition IdentityBatchTensor.cxx:47
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