25#include "neml2/tensors/user_tensors/EmptyFixedDimTensor.h"
29#define EMPTYFIXEDDIMTENSOR_REGISTER(T) register_NEML2_object_alias(Empty##T, "Empty" #T)
30FOR_ALL_FIXEDDIMTENSOR(EMPTYFIXEDDIMTENSOR_REGISTER);
42 " with given batch shape. Tensor values are **undefined** after construction.";
45 options.
set(
"batch_shape").doc() =
"Batch shape";
57#define EMPTYFIXEDDIMTENSOR_INSTANTIATE_FIXEDDIMTENSOR(T) template class EmptyFixedDimTensor<T>
58FOR_ALL_FIXEDDIMTENSOR(EMPTYFIXEDDIMTENSOR_INSTANTIATE_FIXEDDIMTENSOR);
The wrapper (decorator) for cross-referencing unresolved values at parse time.
Definition CrossRef.h:52
EmptyFixedDimTensor(const OptionSet &options)
Construct a new EmptyFixedDimTensor object.
Definition EmptyFixedDimTensor.cxx:51
static OptionSet expected_options()
Definition EmptyFixedDimTensor.cxx:34
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
std::string demangle(const char *name)
Definition parser_utils.cxx:46
Definition CrossRef.cxx:32
const torch::TensorOptions default_tensor_options()
Definition types.cxx:30
std::vector< TorchSize > TorchShape
Definition types.h:36