Skip to main content

elem_count

Function elem_count 

Source
pub fn elem_count(shape: &[usize]) -> u64
Expand description

Product of shape dimensions; an empty shape is a scalar with one element.