numel

Function numel 

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

Computes the total number of elements from a shape.

§Arguments

  • shape - The tensor shape

§Returns

Total number of elements (product of dimensions).