Skip to main content

broadcast_shapes

Function broadcast_shapes 

Source
pub fn broadcast_shapes(
    op: &'static str,
    a: &[usize],
    b: &[usize],
) -> Result<Vec<usize>>
Expand description

The broadcast shape of a and b (NumPy rules), or op’s shape-mismatch error, as the binary operations compute it.