Skip to navigation

holoscan::TensorAlternative

Beta
View as MarkdownOpen in Claude

Describe one complete Tensor form that a port accepts or may emit.

Facts within one alternative hold together; a port’s alternatives form a union. Keep correlated facts, such as a dtype that applies only at one rank, in separate alternatives. A set-valued member admits each listed value independently of the other members.

The exact representation.rank and ranks are mutually exclusive, as are the exact representation.dtype and dtypes. Rank and dtype sets own their values.

#include <holoscan/tensor_contract_types.hpp>

Member variables

NameTypeDescription
representationTensorRepresentationExact facts of this form.
ranksTensorRankSetAdmitted ranks; empty leaves rank exact.
dtypesTensorDtypeSetAdmitted element types; empty leaves dtype exact.
boundsstd::optional< TensorBounds >Optional logical bounds of this form. Mutually exclusive with spec-level bounds.