Skip to navigation

holoscan::TensorBoundaryContractView

Beta
View as Markdown

Inspect one catalog-owned logical Tensor boundary contract.

The view contains only immutable logical requirements. Physical pools, allocator authority, CUDA objects, readiness tokens, and live claims remain private execution-plan or Runtime state.

#include <holoscan/endpoint_catalog.hpp>

Constructors

TensorBoundaryContractView


Methods

memory_kind

std::optional<MemoryKind> holoscan::TensorBoundaryContractView::memory_kind() const noexcept

Return the required logical storage kind when constrained.

Returns: Exact storage kind, or no value when the contract is storage-agnostic.

dtype

std::optional<DLDataType> holoscan::TensorBoundaryContractView::dtype() const noexcept

Return the required DLPack element type when constrained.

Returns: Exact element type, or no value when unconstrained.

rank

std::optional<std::uint32_t> holoscan::TensorBoundaryContractView::rank() const noexcept

Return the exact logical rank when constrained.

Returns: Exact rank, including zero for a scalar Tensor, or no value.

max_rank

std::optional<std::uint32_t> holoscan::TensorBoundaryContractView::max_rank() const noexcept

Return the admitted maximum logical rank.

Returns: Positive finite bound, or no value when this optional logical contract omits it.

max_byte_span

std::optional<std::uint64_t> holoscan::TensorBoundaryContractView::max_byte_span() const noexcept

Return the admitted maximum logical byte span.

Returns: Positive finite byte bound, or no value when omitted.

axes

std::span<const TensorAxisBounds> holoscan::TensorBoundaryContractView::axes() const noexcept

Return ordered immutable per-axis bounds.

Returns: Catalog-owned axis records.

stride_policy

TensorStridePolicy holoscan::TensorBoundaryContractView::stride_policy() const noexcept

Return the admitted logical stride family.

Returns: Closed stride policy.

foreign_emit_policy

InterfaceTensorEmitPolicy holoscan::TensorBoundaryContractView::foreign_emit_policy() const noexcept

Return the foreign-emission handling policy.

Returns: Closed boundary emission policy.

max_inline_bytes

std::optional<std::uint32_t> holoscan::TensorBoundaryContractView::max_inline_bytes() const noexcept

Return the positive inline-host cap when the inline policy is selected.

Returns: Byte cap, or no value for non-inline policies.

max_staging_byte_span

std::optional<std::uint64_t> holoscan::TensorBoundaryContractView::max_staging_byte_span() const noexcept

Return the positive foreign-storage staging cap when copying is admitted.

Returns: Byte cap, or no value when copying is forbidden.


Member variables

NameTypeDescription
record_const TensorBoundaryContractRecord *