Skip to main content

check_shape

Function check_shape 

Source
pub fn check_shape(
    name: &str,
    shape: &[usize],
    limits: &Limits,
) -> Result<usize, Error>
Expand description

Validates a declared shape against the limits and returns its element count.