holoscan::TensorOutputSpecBuilder
Configure a Tensor or descriptor-backed Tensor schema output.
Every common output method preserves this specialized fluent type. Runtime-pool intent and its finite bounds are declared together in TensorOutputSpec; compilation admits and materializes physical placement in a later component.
Methods
nominal_rate
Declare one fixed nominal output rate.
lifecycle_nominal_rate
Declare the forward lifecycle stage that selects this output’s nominal rate.
max_nominal_rate
Declare the maximum selectable nominal average for a lifecycle-selected output.
follows
Derive this output’s nominal rate from one input owned by the same Operator.
max_emits_per_compute
Set the maximum publications admitted from one compute activation.
Returns: This specialized builder.
Parameters
Positive finite burst bound; the declaration default is one.
late_joiner_history_depth
Set optional retained history for late subscribers.
Returns: This specialized builder.
Parameters
Finite retained sample count; zero disables retained history.
diagnostic_alias
Record an alternate diagnostic display name.
Returns: This specialized builder.
Throws: std::bad_alloc if storage for the copied alias cannot be allocated.
Throws: std::length_error if alias exceeds the implementation’s maximum string size.
Parameters
Display-only name copied into cold metadata.
produces_tensor
Overload 1
Overload 2
Overload 3
Record one normalized producer Tensor spec.
Returns: This specialized builder.
Parameters
Representation, finite bounds, storage intent, and transfer policy.
Record a runtime-pool Tensor spec with compile-derived slot byte capacity.
A literal maximum byte span and a derived expression are mutually exclusive. Changing a recompile-required Parameter requires compiling a new plan, not rebuilding the binary.
Returns: This specialized builder.
Parameters
Runtime-pool representation, rank capacity, and optional transfer policy.
Immutable scalar expression resolved from generation-zero dependencies.
Record a runtime-pool Tensor spec with compile-derived allocation facts.
Each derivation is the sole authoring source for its fact. Changing a recompile-required Parameter requires compiling a new plan.
Returns: This specialized builder.
Parameters
Runtime-pool representation, finite bounds, and optional transfer policy.
Named output facts resolved from generation-zero Parameters.
payload_options
Record schema identity and payload options carried by this output.
Returns: This specialized builder.
Parameters
Complete payload options copied into this builder.
tensor_field
Overload 1
Overload 2
Overload 3
Overload 4
Select one Tensor member for field-scoped output declarations.
The returned non-owning builder must not outlive this parent builder.
Returns: Field-scoped builder for logical, materialization, and allocation facts.
Template parameters
Owning generated descriptor-backed schema type.
Parameters
Generated schema-typed field token.
Declare one Tensor field from a direction-specific output spec.
Returns: This output builder.
Throws: std::bad_alloc if field-record storage cannot be allocated.
Template parameters
Owning generated descriptor-backed schema type.
Parameters
Generated schema-typed field token.
Logical, allocation, and optional materialization facts.
Declare one Tensor field with compile-derived slot byte capacity.
Returns: This output builder.
Template parameters
Owning generated descriptor-backed schema type.
Parameters
Generated schema-typed field token.
Runtime-pool representation, rank capacity, and transfer policy.
Immutable scalar expression resolved from generation-zero dependencies.
Declare one Tensor field with compile-derived allocation facts.
Returns: This output builder.
Template parameters
Owning generated descriptor-backed schema type.
Parameters
Generated schema-typed field token.
Runtime-pool representation, rank/capacity bounds, and transfer policy.
Named field facts resolved from generation-zero Parameters.
tensor_fields
Overload 1
Overload 2
Apply one output spec to a statically listed set of Tensor fields.
Returns: This output builder.
Throws: std::bad_alloc if field-record storage cannot be allocated.
Template parameters
Owning generated descriptor-backed schema type.
Number of listed selectors.
Parameters
Generated schema-typed field tokens.
Shared logical, allocation, and optional materialization facts.
Declare a complete heterogeneous common output field inventory.