Function ensure_same_shape
Source pub fn ensure_same_shape(a: &[usize], b: &[usize]) -> Result<()>
Expand description
Check exact shape agreement before prevalidated replay.
§Examples
use strided_basic::execution::ensure_same_shape;
ensure_same_shape(&[2, 3], &[2, 3]).unwrap();
assert!(ensure_same_shape(&[2, 3], &[3, 2]).is_err());
§Errors
Returns a rank or shape mismatch.