Skip to main content

expected_nbytes

Function expected_nbytes 

Source
pub fn expected_nbytes(dtype: TensorDtype, shape: &[usize]) -> Option<usize>
Expand description

Expected byte length of a tensor given dtype and element count.