NVIDIA Holoscan SDK v3.8.0

Function holoscan::utils::cuda::get_element_size

inline uint32_t holoscan::utils::cuda::get_element_size(BufferDataType data_type) noexcept

Get the element size in bytes for a given data type.

Parameters

data_type – The data type

Returns

Number of bytes per element

Previous Function holoscan::utils::cuda::get_cuda_runtime_version
Next Function holoscan::utils::get_data_per_model(InputContext&, const std::vector<std::string>&, HoloInfer::DataMap&, std::map<std::string, std::vector<int>>&, bool, const std::string&, gxf_context_t&, CudaStreamHandler&)
© Copyright 2022-2025, NVIDIA. Last updated on Nov 6, 2025