pub fn validate_tensor_shapes_match( shape1: &[usize], shape2: &[usize], ) -> PyResult<()>
Validate that tensor dimensions match for operations