Skip to main content

unify_shapes

Function unify_shapes 

Source
pub fn unify_shapes(a: &Shape, b: &Shape) -> Option<Shape>
Expand description

Unify two shapes element-wise. Returns None if ranks differ or any dimension pair is incompatible.