Stack
- cvcuda.stack(src: list[nvcv.Tensor], *, stream: nvcv.cuda.Stream | None = None) nvcv.Tensor
Executes the Stack operation on the given cuda stream. This takes input tensors and combines them into a N(HWC/CHW) tensor.
See also
Refer to the CV-CUDA C API reference for the Stack operator for more details and usage examples.
- Parameters:
src (List[nvcv.Tensor]) – Input tensors containing one or more samples each images all tensors must be N(HWC/CHW) or HWC/CHW and have the same data type and shape.
stream (nvcv.cuda.Stream, optional) – CUDA Stream on which to perform the operation.
- Returns:
The output tensor containing the stacked input tensors.
- Return type:
nvcv.Tensor
Caution
Restrictions to several arguments may apply. Check the C API references of the CV-CUDA operator.
- cvcuda.stack_into(dst: nvcv.Tensor, src: list[nvcv.Tensor], *, stream: nvcv.cuda.Stream | None = None) nvcv.Tensor
Executes the Stack operation on the given cuda stream. This takes input tensors and combines them into a N(HWC/CHW) tensor.
See also
Refer to the CV-CUDA C API reference for the Stack operator for more details and usage examples.
- Parameters:
dst (nvcv.Tensor) – Output N(CHW/HWC) tensor to store the result of the operation.
src (List[nvcv.Tensor]) – Input tensors containing one or more samples each images all tensors must be N(HWC/CHW) or HWC/CHW and have the same data type and shape.
stream (nvcv.cuda.Stream, optional) – CUDA Stream on which to perform the operation.
- Returns:
None
Caution
Restrictions to several arguments may apply. Check the C API references of the CV-CUDA operator.