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();
56 arrow::StructBuilder* builder,
const datatypes::TensorDimension* elements,
61 static Result<std::shared_ptr<arrow::Array>> to_arrow(
62 const datatypes::TensorDimension* instances,
size_t num_instances
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:87
All built-in datatypes. See Types in the Rerun manual.
Definition rerun.hpp:72
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:20
Datatype: A single dimension within a multi-dimensional tensor.
Definition tensor_dimension.hpp:21
TensorDimension(size_t size_)
Nameless dimension.
Definition tensor_dimension.hpp:32
TensorDimension(size_t size_, std::string name_)
Dimension with name.
Definition tensor_dimension.hpp:35
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