You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let inverted = test
.call1(PyTuple::new_bound(py,&[a])).unwrap().downcast_into::<PyArray3<u8>>().unwrap();println!("inverted shape: {:?}, len: {}",
inverted.shape(),
inverted.len());let v = inverted.to_vec().unwrap();println!("inverted vector size: {:?}", v.len());
output:
inverted shape: [360, 640, 3], len: 691200
thread 'main' panicked at src/main.rs:117:46:
called `Result::unwrap()` on an `Err` value: NotContiguousError
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
The text was updated successfully, but these errors were encountered:
my code:
output:
The text was updated successfully, but these errors were encountered: