Skip to navigation

holoscan::tensor_shape

Beta
View as Markdown
template <typename SchemaT>
TensorFieldSelector<SchemaT> field,
TensorByteStridesView byte_strides = std::nullopt
) noexcept

Create one shapes-only Tensor field allocation request.

Returns: Request whose dtype is resolved from the admitted output spec.

Template parameters

SchemaT
typename

Owning generated descriptor-backed schema type.

Parameters

field
TensorFieldSelector<SchemaT>

Generated schema-typed field selector.

shape
TensorShapeView

Logical Tensor extents borrowed for the allocation call.

byte_strides
TensorByteStridesViewDefaults to std::nullopt

Optional explicit byte strides borrowed for the allocation call.