Skip to navigation

holoscan::TensorViewMetadata

Beta
View as Markdown

Describe one bounded Tensor view carried by schema metadata.

The schema is authoritative for shape, dtype, strides, and logical byte size. A transport descriptor separately identifies the backing storage and its memory kind.

#include <holoscan/tensor.hpp>

Member variables

NameTypeDescription
kMaxRank static constexprstd::size_tMaximum Tensor rank represented inline.
rankstd::uint32_tTensor rank.
dtypeDLDataTypeDLPack element type.
deviceDLDeviceDLPack device encoded by the schema.
has_explicit_byte_stridesboolWhether byte_strides is explicit.
byte_sizestd::uint64_tLogical Tensor byte size.
shapestd::array< std::int64_t, kMaxRank >Valid entries are in [0, ``rank``).
byte_stridesstd::array< std::int64_t, kMaxRank >Valid entries are in [0, ``rank``) when has_explicit_byte_strides is true.