Skip to navigation

holoscan::ProjectedTensorOutput

Beta
View as MarkdownOpen in Claude
template <PublishedPayload SchemaT>

Name one Tensor field of a descriptor-backed schema output for a Tensor-typed edge.

A projection exposes a Tensor that the producer already publishes as a sidecar payload alongside the schema metadata. It narrows the declared payload for one edge; it does not transform the data and introduces no Tensor data-buffer allocation or copy. Sample metadata such as capture time, clock identity, and flags is a property of the sample rather than the payload and therefore survives the narrowing.

The view borrows the output declaration and is meant to be consumed immediately as an add_flow source rather than stored.

#include <holoscan/port.hpp>

Template parameters

SchemaT
PublishedPayload

Owning descriptor-backed schema type declared on the output port.


Constructors

ProjectedTensorOutput

const Output<SchemaT> &source,
TensorFieldSelector<SchemaT> selector
) noexcept

Borrow one schema output declaration and the Tensor field named on it.


Methods

source

const Output<SchemaT> & holoscan::ProjectedTensorOutput<SchemaT>::source() const noexcept

Return the borrowed schema output declaration.

selector

TensorFieldSelector<SchemaT> holoscan::ProjectedTensorOutput<SchemaT>::selector() const noexcept

Return the named Tensor field identity.


Types

Typedefs

NameDefinitionDescription
schema_typeSchemaTOwning descriptor-backed schema type.

Member variables

NameTypeDescription
source_const Output< SchemaT > *
selector_TensorFieldSelector< SchemaT >