6#include "../result.hpp"
26 std::optional<std::string>
name;
48 struct Loggable<datatypes::TensorDimension> {
49 static constexpr const char Name[] =
"rerun.datatypes.TensorDimension";
52 static const std::shared_ptr<arrow::DataType>& arrow_datatype();
55 static Result<std::shared_ptr<arrow::Array>> to_arrow(
56 const datatypes::TensorDimension* instances,
size_t num_instances
61 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:82
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:22
Datatype: A single dimension within a multi-dimensional tensor.
Definition tensor_dimension.hpp:21
TensorDimension(size_t size_)
Nameless dimension.
Definition tensor_dimension.hpp:30
TensorDimension(size_t size_, std::string name_)
Dimension with name.
Definition tensor_dimension.hpp:33
uint64_t size
The length of this dimension.
Definition tensor_dimension.hpp:23
std::optional< std::string > name
The name of this dimension, e.g. "width", "height", "channel", "batch', ….
Definition tensor_dimension.hpp:26