holoscan::schema::create_tensor_metadata
holoscan::schema::create_tensor_metadata
Add a metadata-only Tensor table to a FlatBuffer builder.
The returned table contains shape, dtype, device, rank, and optional DLPack strides. Its data vector is always absent, including while a WithTensorMaterialization or WithTensorGather scope is active. The caller owns the builder and therefore controls its storage bound and enclosing FlatBuffer root.
Returns: Tensor table offset on success, or Error for invalid metadata or exhausted builder storage.
Parameters
builder
FlatBuffer builder that will own the returned table.
tensor
Tensor whose read-only metadata is serialized.