6#include "../component_descriptor.hpp"
7#include "../result.hpp"
27 std::optional<std::string>
name;
49 struct Loggable<datatypes::TensorDimension> {
50 static constexpr ComponentDescriptor Descriptor =
"rerun.datatypes.TensorDimension";
53 static const std::shared_ptr<arrow::DataType>& arrow_datatype();
56 static Result<std::shared_ptr<arrow::Array>> to_arrow(
57 const datatypes::TensorDimension* instances,
size_t num_instances
62 arrow::StructBuilder* builder,
const datatypes::TensorDimension* elements,
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:95
All built-in datatypes. See Types in the Rerun manual.
Definition rerun.hpp:83
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:23
Datatype: A single dimension within a multi-dimensional tensor.
Definition tensor_dimension.hpp:22
TensorDimension(size_t size_)
Nameless dimension.
Definition tensor_dimension.hpp:31
TensorDimension(size_t size_, std::string name_)
Dimension with name.
Definition tensor_dimension.hpp:34
uint64_t size
The length of this dimension.
Definition tensor_dimension.hpp:24
std::optional< std::string > name
The name of this dimension, e.g. "width", "height", "channel", "batch', ….
Definition tensor_dimension.hpp:27