6#include "../datatypes/tensor_data.hpp"
7#include "../result.hpp"
35 : data(
rerun::datatypes::
TensorData(std::move(shape), std::move(buffer))) {}
42 template <
typename TElement>
52 data = std::move(data_);
69 struct Loggable<components::TensorData> {
70 static constexpr const char Name[] =
"rerun.components.TensorData";
73 static const std::shared_ptr<arrow::DataType>& arrow_datatype();
77 arrow::StructBuilder* builder,
const components::TensorData* elements,
82 static Result<std::shared_ptr<arrow::Array>> to_arrow(
83 const components::TensorData* instances,
size_t num_instances
Generic collection of elements that are roughly contiguous in memory.
Definition collection.hpp:47
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:87
All built-in components. See Types in the Rerun manual.
Definition rerun.hpp:69
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:20
Component: A multi-dimensional Tensor with optionally named arguments.
Definition tensor_data.hpp:21
TensorData(Collection< datatypes::TensorDimension > shape, const TElement *data_)
New tensor data from dimensions and pointer to tensor data.
Definition tensor_data.hpp:43
TensorData(rerun::Collection< rerun::datatypes::TensorDimension > shape, rerun::datatypes::TensorBuffer buffer)
New tensor data from shape and tensor buffer.
Definition tensor_data.hpp:31
Datatype: The underlying storage for a Tensor.
Definition tensor_buffer.hpp:93
Datatype: A multi-dimensional Tensor of data.
Definition tensor_data.hpp:29