Holoscan SDK v4.2.0

Function holoscan::detail::safe_tensor_element_bytes

inline uint64_t holoscan::detail::safe_tensor_element_bytes(const uint64_t *shape, uint32_t rank, uint64_t bytes_per_element)

Compute product of shape dimensions * bytes_per_element with overflow detection. Returns 0 on overflow or if bytes_per_element is 0.

Previous Function holoscan::detail::primitive_type_to_dtype_string
Next Function holoscan::detail::shape_from_metadata
© Copyright 2022-2026, NVIDIA. Last updated on May 11, 2026