Functions | |
| void | rescaleSegmentationOutput (const cudaStream_t &stream, const float *src_mask_frame, const int src_frame_width, const int src_frame_element_size, const int dst_width, const int dst_element_size, const float4 src_roi, float *dst_mask_patch) |
| Launch segmentation-mask rescaling. More... | |
| void | permuteTensor (const cudaStream_t &stream, const int number_of_eles, const float *src, const int *src_sizes, const int *dst_dim_order, const int nbDims, float *dst) |
| Launch tensor-dimension permutation. More... | |
| void | broadcastAdd (const cudaStream_t &stream, const float *src_large, const float *src_small, const int large_size, const int small_size, float *dst) |
| Launch broadcast addition for a tensor and vector. More... | |
| void | addTemporalCode2PosEmbed (const cudaStream_t &stream, float *temporal_code, float *pos_embed, float *dst, const int num_mask_mem, const int broadcast_size, const int temporal_code_size) |
| Add temporal codes to positional embeddings. More... | |
| void cuSegmenter::addTemporalCode2PosEmbed | ( | const cudaStream_t & | stream, |
| float * | temporal_code, | ||
| float * | pos_embed, | ||
| float * | dst, | ||
| const int | num_mask_mem, | ||
| const int | broadcast_size, | ||
| const int | temporal_code_size | ||
| ) |
Add temporal codes to positional embeddings.
| [in] | stream | CUDA stream used for the operation. |
| [in] | temporal_code | Temporal-code tensor. |
| [in] | pos_embed | Positional-embedding tensor. |
| [out] | dst | Destination tensor to populate. |
| [in] | num_mask_mem | Number of mask-memory entries. |
| [in] | broadcast_size | Number of positions receiving each temporal code. |
| [in] | temporal_code_size | Number of values in each temporal code. |
| void cuSegmenter::broadcastAdd | ( | const cudaStream_t & | stream, |
| const float * | src_large, | ||
| const float * | src_small, | ||
| const int | large_size, | ||
| const int | small_size, | ||
| float * | dst | ||
| ) |
Launch broadcast addition for a tensor and vector.
| [in] | stream | CUDA stream used for the operation. |
| [in] | src_large | Larger input tensor. |
| [in] | src_small | Input vector broadcast across the larger tensor. |
| [in] | large_size | Number of elements in the larger tensor. |
| [in] | small_size | Number of elements in the broadcast vector. |
| [out] | dst | Destination tensor to populate. |
| void cuSegmenter::permuteTensor | ( | const cudaStream_t & | stream, |
| const int | number_of_eles, | ||
| const float * | src, | ||
| const int * | src_sizes, | ||
| const int * | dst_dim_order, | ||
| const int | nbDims, | ||
| float * | dst | ||
| ) |
Launch tensor-dimension permutation.
| [in] | stream | CUDA stream used for the operation. |
| [in] | number_of_eles | Number of tensor elements. |
| [in] | src | Source tensor. |
| [in] | src_sizes | Source tensor dimensions. |
| [in] | dst_dim_order | Destination dimension order. |
| [in] | nbDims | Number of tensor dimensions. |
| [out] | dst | Destination tensor to populate. |
| void cuSegmenter::rescaleSegmentationOutput | ( | const cudaStream_t & | stream, |
| const float * | src_mask_frame, | ||
| const int | src_frame_width, | ||
| const int | src_frame_element_size, | ||
| const int | dst_width, | ||
| const int | dst_element_size, | ||
| const float4 | src_roi, | ||
| float * | dst_mask_patch | ||
| ) |
Launch segmentation-mask rescaling.
| [in] | stream | CUDA stream used for the operation. |
| [in] | src_mask_frame | Source segmentation mask. |
| [in] | src_frame_width | Source mask width. |
| [in] | src_frame_element_size | Number of elements in the source mask. |
| [in] | dst_width | Destination mask width. |
| [in] | dst_element_size | Number of elements in the destination mask. |
| [in] | src_roi | Source region of interest. |
| [out] | dst_mask_patch | Destination mask patch to populate. |